Re: Django on Mac OS X

2010-07-18 Thread Daniel França
thanks a lot, now it's working.. at least this part.
=)

On Sun, Jul 18, 2010 at 11:10 PM, Shawn Milochik  wrote:

> This is a known (and common) problem. Here's an easy fix that I've used
> many times.
>
> http://shawnmilo.blogspot.com/2009/11/psycopg2-on-snow-leopard.html
>
> Incidentally, you can replace "make install" with "make altinstall" to add
> Python 2.7 to your system without replacing the default Python.
>
> Shawn
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: import model from other module

2010-07-18 Thread Subhranath Chunder
Obviously it can be done. Just make sure to add the app to your
INSTALLED_APPS and use the proper path while importing.
Things should go fine if properly done.

Thanks,
Subhranath Chunder.

On Mon, Jul 19, 2010 at 1:28 AM, Andreas Pfrengle wrote:

> Hello,
>
> is there a possibility to import a model into models.py from any other
> module? In my models.py I'm trying to do:
>
> #models.py:
> from _external_modules.django_timer import Tim
>
> #django_timer.py:
> from django.db import models
> print 'test'
> class Tim(models.Model):
>
>
> This should import a database-based timer I've written. In fact, code
> from django_timer seems to be imported, since 'test' is printed when I
> execute "manage.py syncdb" - however, the database table is not
> created. Why? What would I need to change to make it work (except copy-
> paste the code into my models.py)?
>
> Thanks for answers,
> Andreas
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: can foreign key fields be empty?

2010-07-18 Thread Subhranath Chunder
Ohh yes it's "null=True". Meant to say set field as None while using.

Eg:
class YourClass(models.Model):
your_model_field = models.ForeignKey('RelatedModel', null=True)
...

instance = YourClass.objects.create(your_model_field=None, ...)

Thanks,
Subhranath Chunder.

On Mon, Jul 19, 2010 at 1:35 AM, Ramiro Morales  wrote:

> On Sun, Jul 18, 2010 at 4:33 PM, rmschne  wrote:
> > Thanks ... but where does "None=True" go?
>
> That should be null=True winn defining the ForeignKey field.
>
> See
>
> http://docs.djangoproject.com/en/1.2/topics/db/models/#field-options
>
> Please accept this humble suggestion:
>
> Reading the documentation from beginning to end once
> will help you a lot when beginning. It would be unfortunate
> to not take advantage of such a great body of documents.
> There are other projects where this is not possible
> because the docs are very basic. But this isn´t the
> case with Django.
>
> Regards,
>
> --
> Ramiro Morales  |  http://rmorales.net
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django on Mac OS X

2010-07-18 Thread Shawn Milochik
This is a known (and common) problem. Here's an easy fix that I've used many 
times.

http://shawnmilo.blogspot.com/2009/11/psycopg2-on-snow-leopard.html

Incidentally, you can replace "make install" with "make altinstall" to add 
Python 2.7 to your system without replacing the default Python.

Shawn

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django on Mac OS X

2010-07-18 Thread Daniel França
Recently I migrated from Linux to Mac OS X 10.6, and I was thinking that
would be easy to migrate my Django project to that.
I was wrong, a lot wrong...
First I tried to install Python2.7, the libs I need to my project, etc
After that I get the error:
*gresql_psycopg2/base.py", line 24, in *
*raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)*
*django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module:
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/_psycopg.so,
2): Symbol not found: _PQbackendPID*
*  Referenced from:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/_psycopg.so
*
*  Expected in: flat namespace*
* in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/_psycopg.so
*
*
*
After some research I saw some suggestions, one of them was to download and
install everything from Ports. But it didn't work for me too:

:info:configure configure: error: library 'xml2' (version >= 2.6.23) is
required for XML support
:info:configure shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql84/work/postgresql-8.4.4"
&& ./configure --prefix=/opt/local --disable-dependency-tracking
--sysconfdir=/opt/local/etc/postgresql84
--bindir=/opt/local/lib/postgresql84/bin
--libdir=/opt/local/lib/postgresql84
--includedir=/opt/local/include/postgresql84
--datadir=/opt/local/share/postgresql84 --mandir=/opt/local/share/man
--without-docdir --with-includes=/opt/local/include
--with-libraries=/opt/local/lib --with-openssl --with-bonjour
--with-readline --with-zlib --with-libxml --with-libxslt
--enable-thread-safety --enable-integer-datetimes --with-ossp-uuid "
returned error 1
:error:configure Target org.macports.configure returned: configure failure:
shell command failed

But libxml2.7 was there, what I did? I tried to remove it and install again,
but when I tried to reinstall it I get another error:

Error: You cannot install libxml2 for the architecture(s) x86_64 i386
because

Error: its dependency libiconv only contains the architecture(s) i386 ppc.

I tried install psycopg2 using easy_install... everything looks fine, but
when I try to run my project, same error before.

Another suggestion I found was to run python in 32 bits mode.

I did a little test:

 "arch -i386 pyhon -c 'import psycopg2'

It seems to work, but when I ran my project the error is still there, tried
to change de env variable:

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes

no success yet.

So I gave up of Python2.7 and back to Python2.5 tried to install everything
again.

and it's not even recognize Django:

Traceback (most recent call last):
  File "./manage.py", line 11, in 
from django.conf import settings
ImportError: No module named django.conf

The libs are here:
python -c "from distutils.sysconfig import get_python_lib; print
get_python_lib()"
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages

ls
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
Django-1.2.1-py2.5.egg-info django_extensions-0.5-py2.5.egg-info psycopg2
PIL django_pagination-1.0.7-py2.5.egg psycopg2-2.2.2-py2.5.egg-info
PIL.pth django_robots-0.8.0-py2.5.egg pytz-2010h-py2.5.egg
South-0.7.1-py2.5.egg django_tagging-0.3.1-py2.5.egg-info
setuptools-0.6c11-py2.5.egg
django django_timezones-0.1.4-py2.5.egg setuptools.pth
django_db_log-2.0.0-py2.5.egg easy-install.pth tagging
django_dbtemplates-0.7.1-py2.5.egg include_server
django_extensions include_server-3.1_toolwhip.1-py2.5.egg-info

python --version
Python 2.5.4

Best Regards,

Daniel França

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Multiple URLs, Common View

2010-07-18 Thread Phil Edwards

On 18/07/2010 23:55, Phil Edwards wrote:


-begin-
def servePage(request):
if request.path[1:] == '':
thisPage = Page.objects.get(name = unicode('home'))
else:
thisPage = Page.objects.get(name = unicode(request.path[1:]))
sidebar_list = Page.objects.filter(category = thisPage.category)
article_list = Article.objects.filter(page =
thisPage.id).order_by('-amendedon')
return render_to_response('base.html', locals())
--end--



Meh. Don't know what happened to the indentation there, but it should 
look like this:


-begin-
def servePage(request):
if request.path[1:] == '':
thisPage = Page.objects.get(name = unicode('home'))
else:
thisPage = Page.objects.get(name = unicode(request.path[1:]))
sidebar_list = Page.objects.filter(category = thisPage.category)
article_list = Article.objects.filter(page = 
thisPage.id).order_by('-amendedon')

return render_to_response('base.html', locals())
--end--

--

Regards

Phil Edwards   |  PGP/GnuPG Key Id
Brighton, UK   |  0xDEF32500

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread Fabian Ezequiel Gallina
2010/7/18 Roald de Vries :
>
> Comparison of VIM and Emacs (what I've read):
> - Emacs is monolithic (does everything, for example includes shell), VIM is
> unix style (does one thing well, why reproduce the shell?)

Wrong, all it's features are in separated Emacs' Lisp modules which
can be activated or deactivated at user's will. Emacs provides
different kind of programs to allow user's edit text without exiting
from Emacs, that's why it is nice to have a shell (that without
mentioning the cool features you can develop with a shell interface).

> - Emacs doesn't have different (confusing) modes, VIM doesn't leave you with
> a crippled little finger (from all the 's)

For me having two modes is annoying and confusing, I don't mind
hitting modifiers to execute things but that's a personal taste, the
good thing is that if you are a vi(m)'s keybinding dependant person
you can activate viper-mode and Emacs will have the same keybindings
as vi(m).

> - VIM has more commands than Emacs

I disagree with that. Just install Emacs, hit M-x apropos-commands and
count them for yourself :). Emacs is a Lisp interpreter with text
editor commands and primitives included into it. So it is a complete
development environment for itself and the GNU/Emacs distribution
comes with batteries-included, it supports by default languages you
probably never heard of.

> I would say Emacs makes you more productive on shorter term, VIM makes you
> more productive on longer term.
>

I disagree with that too, both editors are so advanced that let you
increase your productivity in time to limits you wouldn't imagine.
Emacs is known to be the most extensible of both (that's its
philosophy) so your productivity limit is your imagination, as long as
you willing to learn some Emacs Lisp.

I'm not sending this email to start a flame on Emacs and Vim. Being a
relatively advanced Emacs user I just like to correct some points
expressed here.

And to finish I like to mention that I tried myself Vim and Emacs some
years ago when looking for better ways to work, and I stayed with
Emacs mainly because of two things:
* The extension language (I like Lisp).
* I don't like having two editing modes.

Whatever you choose should be fine, it's just a matter of personal taste.


Best Regards,
-- 
Fabián E. Gallina
http://www.from-the-cloud.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Is Django right for what I am trying to do

2010-07-18 Thread Martin Tiršel

On Fri, 09 Jul 2010 16:50:14 +0200, derek  wrote:


More complex or more detailed?  (I would argue that The Django Book is
about as high quality as you are ever going to get for a free
tutorial)

Try: http://www.hoboes.com/NetLife/pytown/django-beyond-sql/

or:  
http://opensourcebridge.org/2009/wiki/Django%3A_Thinking_Outside_The_Blog


or: http://www.slideshare.net/jacobian/django-in-the-real-world-175


Thanks for links, as I have some time, I will go through :)

I would appreciated if there are some tutorials how to use some advanced  
things in real web applications and not how to display first 10 blog  
entries and so on :)




The real issue is that, because Django is a framework, designed to
meet N number of possible needs, once you get "beyond the basics", the
specifics start to diverge more and more from what _you_ actually need
to do.

My 2c
Derek



You are right.

Martin

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread Tran Cao Thai
eclipse + pydev is terrible when running on Linux IMO. Everytime starting
the server, cpu runs like a horse without any reason. For me, gedit is the
best. It is light, fast and have appearance support,powerful snippet plugin,
and multi tab terminal integration. What else do you expect more to code
python / django?

On Mon, Jul 19, 2010 at 5:50 AM, bedros <2bed...@gmail.com> wrote:

> I use komodo edit
>
> openkomodo.com
>
> Komodo Edit is free, but Komodo IDE is commercial
>
>
>
> On Jul 18, 11:22 am, Subhranath Chunder  wrote:
> > Obviously it's the user personal choice, always! :)
> >
> > Thanks,
> > Subhranath Chunder.
> >
> > On Sun, Jul 18, 2010 at 11:45 PM, Roald de Vries 
> wrote:
> >
> > > On Jul 18, 2010, at 7:19 PM, Biju Varghese wrote:
> >
> > >> Eclipse is the best IDE for python and django.
> >
> > >> On Jul 17, 8:53 pm, Jitendra Joshi 
> wrote:
> >
> > >>> What is the best open source Django IDE ?
> >
> > > I would say VIM, too. Emacs should be very good too, but I've never
> used
> > > it. Their advantage:
> > > 1) you can use them from the command line, so over SSH too, and they
> (at
> > > least VI) are available everywhere
> > > 2) they're so wide spread that there's a plug-in for almost everything
> > > 3) they're so configurable that you can write a plug-in to do anything
> you
> > > want
> > > 4) learn once, use for anything
> >
> > > Admitted, there are disadvantages: they have a learning curve,
> expecially
> > > VIM, but once you know how to use them, they increase your productivity
> a
> > > lot.
> >
> > > Features:
> > > - autocompletion
> > > - very very very strong search and replace
> > > - macro's
> > > - configurable key bindings/commands
> >
> > > Comparison of VIM and Emacs (what I've read):
> > > - Emacs is monolithic (does everything, for example includes shell),
> VIM is
> > > unix style (does one thing well, why reproduce the shell?)
> > > - The unix cli uses Emacs key bindings (but VI bindings are optional)
> > > - Emacs doesn't have different (confusing) modes, VIM doesn't leave you
> > > with a crippled little finger (from all the 's)
> > > - VIM has more commands than Emacs
> >
> > > I would say Emacs makes you more productive on shorter term, VIM makes
> you
> > > more productive on longer term.
> >
> > > Cheers, Roald
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Django users" group.
> > > To post to this group, send email to django-us...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Multiple URLs, Common View

2010-07-18 Thread Phil Edwards

Hi All:

I've written myself an ultra-simple CMS as a Django learning exercise. 
It consists of a couple of simple models and a single template to serve 
up articles which have previously been posted into the database from the 
admin interface.


Everything seems to work okay, but I think my implementation could be 
better. I have a single view function which at present looks like this:


-begin-
def servePage(request):
if request.path[1:] == '':
thisPage = Page.objects.get(name = unicode('home'))
else:
thisPage = Page.objects.get(name = unicode(request.path[1:]))
sidebar_list = Page.objects.filter(category = thisPage.category)
article_list = Article.objects.filter(page = 
thisPage.id).order_by('-amendedon')

return render_to_response('base.html', locals())
--end--

Firstly, I suspect that my use of request.path[:1] to get the URL being 
accessed is not the accepted Django way. Is there a better method?


Secondly, even with the generic view that I'm using, I still need to 
have multiple entries in my urls.py file in order to make pages work, i.e:


urlpatterns = patterns('',
(r'^admin/(.*)', admin.site.root),
('^$', servePage),
(r'^home$', servePage),
(r'^about$', servePage),
(r'^family$', servePage),
(r'^aviation$', servePage),
(r'^linux$', servePage),
(r'^windows$', servePage),
(r'^coding$', servePage),
(r'^photo$', servePage),
(r'^gallery$', servePage),
(r'^ppl-diary$', servePage),
)

Is there a way to replace this with a catch all pattern which does not 
break other things? I've tried patterns such as r'^' and this simply 
leads to my static content being skipped, so I see the pages, but with 
no stylesheet applied and all images missing.


I'm seeing a tantalizing clue from the 404 page that gets generated when 
I have DEBUG = True in my settings file. When Django tells me what URL 
patterns it tried, the very last one is "^static/(?P.*)$" - I 
suspect that if I knew how to incorporate that into my urls.py ahead of 
my 'catchall' pattern, I'd be good to go...


I've Googled for terms like 'django generic view' and 'django multiple 
url single view' but I can't find anything useful. I think that at this 
level, my setup probably doesn;t matter, but if it does I'm using Django 
1.2 on both Windows XP and Linux, with Python 2.7 and 2.6 respectively, 
depending upon which machine I have my USB stick plugged into at the time.


--

Regards

Phil Edwards   |  PGP/GnuPG Key Id
Brighton, UK   |  0xDEF32500

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How to get gallery thumbnails without multiple database queries

2010-07-18 Thread Martin Tiršel

Hello,

I have:

class Gallery(models.Model):
...

class Image(models.Model):
gallery = models.ForeignKey(Gallery)
...


Now, on some page, I am listing all galleries and I want for every gallery  
first three (or three flagged, ...) images as thumbnails. I can go through  
each gallery and make another query to load these three images, but it  
isn't very effective. I come from PHP, there I would do such things:


SELECT * FROM `Gallery`

Then create an instance of Gallery object, take all galleries IDs and make  
second query:


SELECT * FROM `Image` WHERE `id_gallery` IN (...)

where ... are all Galleries IDs from previous query. Then create instances  
of Image object and connect it with appropriate Gallery object.



1. How to do such thing in Django?

2. And second question, does Gallery knows about Image? In other words, if  
I have an Gallery object (e.g. "gal"), can I access to Image through  
Gallery? Something like gal.Image[0] for first image in the gallery.


Thanks,
Martin

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



OneToOneField in "Dynamic Model" referencing another dynamic model.

2010-07-18 Thread Massimiliano della Rovere
greetings. I am using the admin interface to show data retrieved by a
collector process and put in a different table for each source; each
source is identified by "cliente", "num1" and "num2". At run time
django scans the db for tables with proper names and builds classes
modeled from an abstract template.
The code  will make everything clearer:

class Telefonate(models.Model):
id = models.BigIntegerField(unique=True, primary_key=True)
   # some other fields here

class Meta:
abstract = True



def telefonate_factory(cliente, num1, num2):
if type(num1) != type(''):
raise TypeError('parameter client1 must be of type %s insted
of %s' % (type(''), type(cliente)))
if type(num2) != type(''):
raise TypeError('parameter client2 must be of type %s insted
of %s' % (type(''), type(cliente)))
if type(cliente) != type(''):
raise TypeError('parameter num must be of type %s insted of
%s' % (type(''), type(num)))
cliente = str(cliente).lower()
nome = 'Telefonate%s%s%s' % (cliente.capitalize(), num1, num2)
ret = type(nome, (Telefonate,), {'__module__':
Telefonate.__dict__['__module__']})
ret._meta.db_table= 'telefonate_%s_%s_%s' % (cliente,
num1, num2)
ret._meta.verbose_name= 'telefonate di %s-%s-%s' %
(cliente.capitalize().replace('_', ' '), num1, num2)
ret._meta.verbose_name_plural = 'telefonate di %s-%s-%s' %
(cliente.capitalize().replace('_', ' '), num1, num2)
return ret



from django.db import connection, transaction, connections
extractor = re.compile(r'^telefonate_([a-z_]+?)_(\d+)_(\d+)$')

for db in settings.DATABASES.keys():
conn = connections[db]
cursor = conn.cursor()

cursor.execute('SHOW TABLES LIKE "telefonate_%%"')

for t in cursor.fetchall():
vals = extractor.search(str(t[0])).groups()
globals()['Telefonate' + vals[0].capitalize() + vals[1] +
vals[2]] = telefonate_factory(vals[0], vals[1], vals[2])


Then my problem: class Blocks is an abstract class, being used as
class telefonate. Each class Blocks/cliente/num1/num2 has a
OneToOneField related to the corresponding class
Telefonate/cliente/num1/num2: how to write class Blocks? in particular
the OneToOneField?

class Blocchi(models.Model):
call = models.OneToOneField(Telefonate, unique=True, primary_key=True)
block_start = models.IntegerField()
block_end = models.IntegerField()

class Meta:
db_table = u'blocchi'
verbose_name_plural = 'blocchi'
abstract = True
ordering = ['call']

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



prepopulated_fields - slug and underscores

2010-07-18 Thread Martin Tiršel

Hello,

if I use

prepopulated_fields = {"page_slug": ("page_title",)}

all spaces are replaced with hyphens. If I would like to use underscores  
instead, is there a way how to change it?


Thanks,
Martin

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: import model from other module

2010-07-18 Thread Martin Tiršel
On Sun, 18 Jul 2010 21:58:15 +0200, Andreas Pfrengle  
 wrote:


 when I

execute "manage.py syncdb" - however, the database table is not
created. Why? What would I need to change to make it work (except copy-
paste the code into my models.py)?



Hello,

do you have it in INSTALLED_APPS ?

Regards,
Martin

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: can foreign key fields be empty?

2010-07-18 Thread Ramiro Morales
On Sun, Jul 18, 2010 at 4:33 PM, rmschne  wrote:
> Thanks ... but where does "None=True" go?

That should be null=True winn defining the ForeignKey field.

See

http://docs.djangoproject.com/en/1.2/topics/db/models/#field-options

Please accept this humble suggestion:

Reading the documentation from beginning to end once
will help you a lot when beginning. It would be unfortunate
to not take advantage of such a great body of documents.
There are other projects where this is not possible
because the docs are very basic. But this isn´t the
case with Django.

Regards,

-- 
Ramiro Morales  |  http://rmorales.net

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



import model from other module

2010-07-18 Thread Andreas Pfrengle
Hello,

is there a possibility to import a model into models.py from any other
module? In my models.py I'm trying to do:

#models.py:
from _external_modules.django_timer import Tim

#django_timer.py:
from django.db import models
print 'test'
class Tim(models.Model):


This should import a database-based timer I've written. In fact, code
from django_timer seems to be imported, since 'test' is printed when I
execute "manage.py syncdb" - however, the database table is not
created. Why? What would I need to change to make it work (except copy-
paste the code into my models.py)?

Thanks for answers,
Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread bedros
I use komodo edit

openkomodo.com

Komodo Edit is free, but Komodo IDE is commercial



On Jul 18, 11:22 am, Subhranath Chunder  wrote:
> Obviously it's the user personal choice, always! :)
>
> Thanks,
> Subhranath Chunder.
>
> On Sun, Jul 18, 2010 at 11:45 PM, Roald de Vries  wrote:
>
> > On Jul 18, 2010, at 7:19 PM, Biju Varghese wrote:
>
> >> Eclipse is the best IDE for python and django.
>
> >> On Jul 17, 8:53 pm, Jitendra Joshi  wrote:
>
> >>> What is the best open source Django IDE ?
>
> > I would say VIM, too. Emacs should be very good too, but I've never used
> > it. Their advantage:
> > 1) you can use them from the command line, so over SSH too, and they (at
> > least VI) are available everywhere
> > 2) they're so wide spread that there's a plug-in for almost everything
> > 3) they're so configurable that you can write a plug-in to do anything you
> > want
> > 4) learn once, use for anything
>
> > Admitted, there are disadvantages: they have a learning curve, expecially
> > VIM, but once you know how to use them, they increase your productivity a
> > lot.
>
> > Features:
> > - autocompletion
> > - very very very strong search and replace
> > - macro's
> > - configurable key bindings/commands
>
> > Comparison of VIM and Emacs (what I've read):
> > - Emacs is monolithic (does everything, for example includes shell), VIM is
> > unix style (does one thing well, why reproduce the shell?)
> > - The unix cli uses Emacs key bindings (but VI bindings are optional)
> > - Emacs doesn't have different (confusing) modes, VIM doesn't leave you
> > with a crippled little finger (from all the 's)
> > - VIM has more commands than Emacs
>
> > I would say Emacs makes you more productive on shorter term, VIM makes you
> > more productive on longer term.
>
> > Cheers, Roald
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: can foreign key fields be empty?

2010-07-18 Thread rmschne
Thanks ... but where does "None=True" go?

On Jul 18, 7:08 pm, Subhranath Chunder  wrote:
> A simple "None=True" should work.
>
> Thanks,
> Subhranath Chunder.
>
>
>
> On Sun, Jul 18, 2010 at 11:25 PM, rmschne  wrote:
> > I have two tables where one is a foreign key for the other. For some
> > of the "children" there is no "parent".  Hence I want to leave the
> > linking field NULL (empty) in the child database table.  I am having
> > trouble making a queryset which finds all children without parents.  I
> > was thinking looking for the linking field to be <1 or None or
> > something.  Not working.  I'm thinking that it is because Django
> > cannot allow a child record to no have a parent when their a foreign
> > key defined?
>
> > I'm not using Django, yet, to put data into the database, so there are
> > children with no parents in the database.  This makes sense for the
> > purpose of the application, but I can't get Django to tell me which
> > children have no parents.
>
> > Thoughts?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com > groups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Tutorial: Custom Feed Generation using Django Syndication Feed Framework

2010-07-18 Thread Subhranath Chunder
Hi,

I was working with Django syndication feed framework sometime back, and
found the existing documentation missing certain things if you are planning
for customizing your feeds.

So, I just wrote up a tutorial to help others get started with it. If you
want, you can find it here:

http://scratch-blog.appspot.com/blog/2010/07/18/tutorial-custom-feed-generation-using-django-syndication-feed-framework-12-and-later/

Thanks,
Subhranath Chunder.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django GeoIP

2010-07-18 Thread Justin Myers
I did a little bit of experimenting with pygeoip a few months ago, and
it didn't seem to be _much_ slower. I wasn't doing a huge number of
requests or anything, though. Depending on your application, it's
definitely worth looking into.

On Jul 17, 6:49 pm, haibin  wrote:
> Thanks All,
>
> Its now clear to me. For sharing purpose, maybe I'll go for pygeoip?
> Since I really only need the GeoIP only. Much simpler, though could be
> much slower?
>
> On Jul 18, 12:20 am, Justin Myers  wrote:
>
> > Yes, there are dependencies for GeoIP. They're listed in the docs for
> > GeoIP (http://docs.djangoproject.com/en/1.2/ref/contrib/gis/geoip/),
> > and the docs' list of GeoDjango's requirements in general (http://
> > docs.djangoproject.com/en/1.2/ref/contrib/gis/install/#requirements)
> > is also useful.
>
> > HTH,
> > Justin
>
> > On Jul 17, 12:58 am, haibin  wrote:
>
> > > hi,
>
> > > I am trying to use GeoIP part of GeoDjango. I importing it by from
> > > django.contrib.gis.utils import GeoIP but getting import error. Do I
> > > have to install someting or do the whole installation process for
> > > GeoDjango? Or what is the minimum requirements just for GeoIP
>
> > > Thanks,
> > > James

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Custom dashboard view and authentication

2010-07-18 Thread scoop
Django version 1.1.1
I have a custom dashboard view set up to override the django admin
default like:

(r'^admin/$', 'dashboard.views.dashboard'),
(r'^admin/', include(admin.site.urls)),

dashboard view authenticates with the @staff_member_required decorator

This has been working fine with all users having superuser permissions
but when trying to login a user with just staff member status (have
tried different permission settings) I am throwing a 500 server error:

[Sun Jul 18 12:36:59 2010] [error] [client 127.0.0.1] mod_wsgi
(pid=13815): Exception occurred processing WSGI script '/home//
_site.wsgi'.
[Sun Jul 18 12:36:59 2010] [error] [client 127.0.0.1] Traceback (most
recent call last):
[Sun Jul 18 12:36:59 2010] [error] [client 127.0.0.1]   File "/
home/./lib/python2.5/django/core/handlers/wsgi.py", line 245, in
__call__
[Sun Jul 18 12:36:59 2010] [error] [client 127.0.0.1] response =
middleware_method(request, response)
[Sun Jul 18 12:36:59 2010] [error] [client 127.0.0.1]   File "/
home/../lib/python2.5/django/contrib/sessions/middleware.py", line
26, in process_response
[Sun Jul 18 12:36:59 2010] [error] [client 127.0.0.1]
patch_vary_headers(response, ('Cookie',))
[Sun Jul 18 12:36:59 2010] [error] [client 127.0.0.1]   File "/
home/../lib/python2.5/django/utils/cache.py", line 130, in
patch_vary_headers
[Sun Jul 18 12:36:59 2010] [error] [client 127.0.0.1] if
response.has_header('Vary'):
[Sun Jul 18 12:36:59 2010] [error] [client 127.0.0.1] AttributeError:
'QuerySet' object has no attribute 'has_header'

I get the same error when user @login_required as well. Any ideas on
this?

Thanks,

Chad

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread Subhranath Chunder
Obviously it's the user personal choice, always! :)

Thanks,
Subhranath Chunder.

On Sun, Jul 18, 2010 at 11:45 PM, Roald de Vries  wrote:

> On Jul 18, 2010, at 7:19 PM, Biju Varghese wrote:
>
>> Eclipse is the best IDE for python and django.
>>
>> On Jul 17, 8:53 pm, Jitendra Joshi  wrote:
>>
>>> What is the best open source Django IDE ?
>>>
>>
> I would say VIM, too. Emacs should be very good too, but I've never used
> it. Their advantage:
> 1) you can use them from the command line, so over SSH too, and they (at
> least VI) are available everywhere
> 2) they're so wide spread that there's a plug-in for almost everything
> 3) they're so configurable that you can write a plug-in to do anything you
> want
> 4) learn once, use for anything
>
> Admitted, there are disadvantages: they have a learning curve, expecially
> VIM, but once you know how to use them, they increase your productivity a
> lot.
>
> Features:
> - autocompletion
> - very very very strong search and replace
> - macro's
> - configurable key bindings/commands
>
> Comparison of VIM and Emacs (what I've read):
> - Emacs is monolithic (does everything, for example includes shell), VIM is
> unix style (does one thing well, why reproduce the shell?)
> - The unix cli uses Emacs key bindings (but VI bindings are optional)
> - Emacs doesn't have different (confusing) modes, VIM doesn't leave you
> with a crippled little finger (from all the 's)
> - VIM has more commands than Emacs
>
> I would say Emacs makes you more productive on shorter term, VIM makes you
> more productive on longer term.
>
> Cheers, Roald
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread Roald de Vries

On Jul 18, 2010, at 7:19 PM, Biju Varghese wrote:

Eclipse is the best IDE for python and django.

On Jul 17, 8:53 pm, Jitendra Joshi  wrote:

What is the best open source Django IDE ?


I would say VIM, too. Emacs should be very good too, but I've never  
used it. Their advantage:
1) you can use them from the command line, so over SSH too, and they  
(at least VI) are available everywhere

2) they're so wide spread that there's a plug-in for almost everything
3) they're so configurable that you can write a plug-in to do anything  
you want

4) learn once, use for anything

Admitted, there are disadvantages: they have a learning curve,  
expecially VIM, but once you know how to use them, they increase your  
productivity a lot.


Features:
- autocompletion
- very very very strong search and replace
- macro's
- configurable key bindings/commands

Comparison of VIM and Emacs (what I've read):
- Emacs is monolithic (does everything, for example includes shell),  
VIM is unix style (does one thing well, why reproduce the shell?)

- The unix cli uses Emacs key bindings (but VI bindings are optional)
- Emacs doesn't have different (confusing) modes, VIM doesn't leave  
you with a crippled little finger (from all the 's)

- VIM has more commands than Emacs

I would say Emacs makes you more productive on shorter term, VIM makes  
you more productive on longer term.


Cheers, Roald

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: can foreign key fields be empty?

2010-07-18 Thread Subhranath Chunder
A simple "None=True" should work.

Thanks,
Subhranath Chunder.

On Sun, Jul 18, 2010 at 11:25 PM, rmschne  wrote:

> I have two tables where one is a foreign key for the other. For some
> of the "children" there is no "parent".  Hence I want to leave the
> linking field NULL (empty) in the child database table.  I am having
> trouble making a queryset which finds all children without parents.  I
> was thinking looking for the linking field to be <1 or None or
> something.  Not working.  I'm thinking that it is because Django
> cannot allow a child record to no have a parent when their a foreign
> key defined?
>
> I'm not using Django, yet, to put data into the database, so there are
> children with no parents in the database.  This makes sense for the
> purpose of the application, but I can't get Django to tell me which
> children have no parents.
>
> Thoughts?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread Masklinn
On 2010-07-18, at 19:19 , Biju Varghese wrote:
> Eclipse is the best IDE for python and django.
No.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



can foreign key fields be empty?

2010-07-18 Thread rmschne
I have two tables where one is a foreign key for the other. For some
of the "children" there is no "parent".  Hence I want to leave the
linking field NULL (empty) in the child database table.  I am having
trouble making a queryset which finds all children without parents.  I
was thinking looking for the linking field to be <1 or None or
something.  Not working.  I'm thinking that it is because Django
cannot allow a child record to no have a parent when their a foreign
key defined?

I'm not using Django, yet, to put data into the database, so there are
children with no parents in the database.  This makes sense for the
purpose of the application, but I can't get Django to tell me which
children have no parents.

Thoughts?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread Biju Varghese
Eclipse is the best IDE for python and django.

On Jul 17, 8:53 pm, Jitendra Joshi  wrote:
> What is the best open source Django IDE ?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



primary key problem

2010-07-18 Thread franklin
Greetings,

I created the models in a Django app using manage.py inspectdb on an
existing postgres database. This seemed to work except that all the
primary keys were described in the models as IntegerFields, which made
them editable in the admin panel, and had to be hand-entered based on
knowledge of the id of the previous record. I just learned about this
after some usage by the client, so I went back to change things like

artist_id = models.IntegerField(primary_key=True)

...to...

artist_id = models.AutoField(primary_key=True)

Now the id fields don't appear in the admin panel, but adding new rows
has become impossible.

> IntegrityError at /admin/franklins_app/blog/add/
> duplicate key value violates unique constraint "blog_pkey"

I've checked the tables and there don't seem to be insane entries in
primary key columns. I've tried commenting the aforementioned lines
out of the models completely and I get the same error. Does anyone
know the fix here? Thanks for the help.

Franklin

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread roberto
Cross platform, I like editra but I think it still needs some more
maturity. It is coded with python.
Ulipad is also developed using python.
Pycharm is nice too but you have to pay for it as soon as testing
period is over.
Netbeans is great but big memory consumer and coded with java. It also
has built-in sql database navigator.
For mac, Coda is sweet.


On Jul 18, 9:47 am, Gonzalo Delgado  wrote:
> El 18/07/10 06:09, Antoni Aloy escribi :> Actually the best productive "IDE" 
> for me, and I'd like to remark the
> > for me, is Vim/gVim with lots of plugins.
>
> For me too, this link is 
> useful:http://code.djangoproject.com/wiki/UsingVimWithDjango
>
> --
> Gonzalo Delgado 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread roberto
pycharm is not open-source


On Jul 18, 6:32 am, Masklinn  wrote:
> PyCharm
>
> On 2010-07-18, at 11:06 , tayfur yilmaz wrote:
>
> > wing ide.
>
> > 2010/7/18 河边的汉子 
>
> >> pydev eric ulipad……
>
> >> 2010/7/18 Juan Hernandez 
>
> >> google: "django ide"
>
> >>> :)
>
> >>> On Sun, Jul 18, 2010 at 12:39 AM, Tran Cao Thai <
> >>> jasonvoorhees...@gmail.com> wrote:
>
>  find them, use them and you will know the best
>
>  On Sun, Jul 18, 2010 at 1:53 AM, Jitendra Joshi <
>  joshijitendra...@gmail.com> wrote:
>
> > What is the best open source Django IDE ?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.
>
>  --
>  You received this message because you are subscribed to the Google Groups
>  "Django users" group.
>  To post to this group, send email to django-us...@googlegroups.com.
>  To unsubscribe from this group, send email to
>  django-users+unsubscr...@googlegroups.com
>  .
>  For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "Django users" group.
> >>> To post to this group, send email to django-us...@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> django-users+unsubscr...@googlegroups.com
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/django-users?hl=en.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Django users" group.
> >> To post to this group, send email to django-us...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> django-users+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/django-users?hl=en.
>
> > --
> >www.tayfuryilmaz.com
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread Gonzalo Delgado
El 18/07/10 06:09, Antoni Aloy escribió:
> Actually the best productive "IDE" for me, and I'd like to remark the
> for me, is Vim/gVim with lots of plugins.
For me too, this link is useful:
http://code.djangoproject.com/wiki/UsingVimWithDjango

-- 
Gonzalo Delgado 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to unsubscribe from Django mailing list

2010-07-18 Thread David Ally
I'm trying to unsubscribe this email from this group, because I have another 
email address i'm using in group, i have unsubscribed several times but the 
emails are still coming in, Please help!

David





From: Masklinn 
To: django-users@googlegroups.com
Sent: Sun, July 18, 2010 10:32:19 AM
Subject: Re: Django IDE

PyCharm

On 2010-07-18, at 11:06 , tayfur yilmaz wrote:
> wing ide.
> 
> 2010/7/18 河边的汉子 
> 
>> pydev eric ulipad……
>> 
>> 2010/7/18 Juan Hernandez 
>> 
>> google: "django ide"
>>> 
>>> :)
>>> 
>>> 
>>> On Sun, Jul 18, 2010 at 12:39 AM, Tran Cao Thai <
>>> jasonvoorhees...@gmail.com> wrote:
>>> 
 find them, use them and you will know the best
 
 
 On Sun, Jul 18, 2010 at 1:53 AM, Jitendra Joshi <
 joshijitendra...@gmail.com> wrote:
 
> What is the best open source Django IDE ?
> 
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
>django-users+unsubscr...@googlegroups.com
>>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> 
> 
 --
 You received this message because you are subscribed to the Google Groups
 "Django users" group.
 To post to this group, send email to django-us...@googlegroups.com.
 To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
>
 .
 For more options, visit this group at
 http://groups.google.com/group/django-users?hl=en.
 
>>> 
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Django users" group.
>>> To post to this group, send email to django-us...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>>django-users+unsubscr...@googlegroups.com

>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>> 
>> 
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>>django-users+unsubscr...@googlegroups.com
>>>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>> 
> 
> 
> 
> -- 
> www.tayfuryilmaz.com
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
>"Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
>django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
>http://groups.google.com/group/django-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



django mailing list app

2010-07-18 Thread James Hancock
I am looking for an app that can manage subscriptions to a mailing list for
a web app I am making. For those who are curious I am creating a web app for
managing free english classes in japan. The current site is goeigo.org.

Features:
allow users to subscribe and unsubscribe to the list.

Allow admins to send emails to certain groups.

Example:
Send an email to all of the classes in Japan.
Send and email to all of the classes in a prefecture/state.
Send and email to all of the users signed up for a class.

Is there an application that would easily do this? I can't seem to find one
yet.

Thanks,
Hancock

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread Masklinn
PyCharm

On 2010-07-18, at 11:06 , tayfur yilmaz wrote:
> wing ide.
> 
> 2010/7/18 河边的汉子 
> 
>> pydev eric ulipad……
>> 
>> 2010/7/18 Juan Hernandez 
>> 
>> google: "django ide"
>>> 
>>> :)
>>> 
>>> 
>>> On Sun, Jul 18, 2010 at 12:39 AM, Tran Cao Thai <
>>> jasonvoorhees...@gmail.com> wrote:
>>> 
 find them, use them and you will know the best
 
 
 On Sun, Jul 18, 2010 at 1:53 AM, Jitendra Joshi <
 joshijitendra...@gmail.com> wrote:
 
> What is the best open source Django IDE ?
> 
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> 
> 
 --
 You received this message because you are subscribed to the Google Groups
 "Django users" group.
 To post to this group, send email to django-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 django-users+unsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/django-users?hl=en.
 
>>> 
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Django users" group.
>>> To post to this group, send email to django-us...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>> 
>> 
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>> 
> 
> 
> 
> -- 
> www.tayfuryilmaz.com
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread Antoni Aloy
Actually the best productive "IDE" for me, and I'd like to remark the
for me, is Vim/gVim with lots of plugins. I mantein my .vimrc and
plugins in http://code.google.com/p/trespams-vim/ if you wan't to see
how it looks.

Vim takes longer to master, in fact you can learn something new each
day, but it's a great tool.

-- 
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread tayfur yilmaz
wing ide.

2010/7/18 河边的汉子 

> pydev eric ulipad……
>
> 2010/7/18 Juan Hernandez 
>
> google: "django ide"
>>
>> :)
>>
>>
>> On Sun, Jul 18, 2010 at 12:39 AM, Tran Cao Thai <
>> jasonvoorhees...@gmail.com> wrote:
>>
>>> find them, use them and you will know the best
>>>
>>>
>>> On Sun, Jul 18, 2010 at 1:53 AM, Jitendra Joshi <
>>> joshijitendra...@gmail.com> wrote:
>>>
 What is the best open source Django IDE ?

 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To post to this group, send email to django-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 django-users+unsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/django-users?hl=en.


>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Django users" group.
>>> To post to this group, send email to django-us...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
www.tayfuryilmaz.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread 河边的汉子
pydev eric ulipad……

2010/7/18 Juan Hernandez 

> google: "django ide"
>
> :)
>
>
> On Sun, Jul 18, 2010 at 12:39 AM, Tran Cao Thai <
> jasonvoorhees...@gmail.com> wrote:
>
>> find them, use them and you will know the best
>>
>>
>> On Sun, Jul 18, 2010 at 1:53 AM, Jitendra Joshi <
>> joshijitendra...@gmail.com> wrote:
>>
>>> What is the best open source Django IDE ?
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Django users" group.
>>> To post to this group, send email to django-us...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django IDE

2010-07-18 Thread Kenneth Gonsalves
On Saturday 17 July 2010 21:23:03 Jitendra Joshi wrote:
> What is the best open source Django IDE ?
> 

geany
-- 
Regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS at AU-KBC

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.