Re: how to display development server page

2012-03-16 Thread Alex Glaros
Thanks Daniel, Does that mean I have to copy python, Django, and Postgres to my PC to create the development environment? much appreciated, Alex Glaros On Mar 16, 10:32 pm, Daniel Roseman wrote: > On Friday, 16 March 2012 22:23:43 UTC-7, Alex Glaros wrote: > > > Newbie

Re: how to display development server page

2012-03-16 Thread Daniel Roseman
On Friday, 16 March 2012 22:23:43 UTC-7, Alex Glaros wrote: > > Newbie trying to run Django for the first time. > > I'm using a hosted Linux server; I run python manage.py runserver, and > get: > > Validating models... > > 0 errors found > Django version 1.3.1, using settings

how to display development server page

2012-03-16 Thread Alex Glaros
Newbie trying to run Django for the first time. I'm using a hosted Linux server; I run python manage.py runserver, and get: Validating models... 0 errors found Django version 1.3.1, using settings 'alexSite.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with

Re: python manage.py syncdb Error: No module named messages

2012-03-16 Thread Shawn Milochik
Not a PATH issue, but a PYTHONPATH issue. Run "python manage.py shell" and try to import 'messages.' I suspect it's not where you think it is, or its location is not on your PYTHONPATH. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: python manage.py syncdb Error: No module named messages

2012-03-16 Thread Robert Steckroth
Ya, it is probably a path issue. It is set as this by the way --> ['', '/usr/lib64/python2.4/site-packages/MySQL_python-1.2.3c1-py2.4-linux-x86_64.egg', '/usr/lib64/python24.zip', '/usr/lib64/python2.4', '/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk',

Re: python manage.py syncdb Error: No module named messages

2012-03-16 Thread Robert Steckroth
Also can I assume, regarding the above question above, that "messages" is the last thing Django is processing since it is at the bottom of the list in installed apps? I.e. If I fix the messages error it might work? INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes',

Re: python manage.py syncdb Error: No module named messages

2012-03-16 Thread Shawn Milochik
Check your PYTHONPATH. Perhaps it's not set right on the CentOS machine. The Linux distro shouldn't make a difference, nor should the presence of Cpanel or MySQL. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

python manage.py syncdb Error: No module named messages

2012-03-16 Thread Robert Steckroth
Hey Gang, I have a Django project built on a Debian server at home using http://djangobb.org;>DjangoBB. It is working on the Debain OS but I am having huge problems on the Centos server. This seams to be the farthest I can go with it. --> #-->python manage.py syncdb Error: No module named messages

Re: NullBooleanField default to unknown

2012-03-16 Thread Mike Dewhirst
On 17/03/2012 11:02am, Ben wrote: I have a NullBooleanField that I would like to show up in my admin interface as radio buttons with unknown selected by default. # I have the following simplified files ## models.py ## class Value(models.Model): presence =

NullBooleanField default to unknown

2012-03-16 Thread Ben
I have a NullBooleanField that I would like to show up in my admin interface as radio buttons with unknown selected by default. # I have the following simplified files ## models.py ## class Value(models.Model): presence = models.NullBooleanField(default=False) ## admin.py ##

css w/ django

2012-03-16 Thread Clark
Trying to get django pages to recognize a css filehaving trouble getting all of the correct settings right in the settings.py, urls.py etc...plus there appears to be several different ways to do this. I'm on a Mac OSX and I've tried this: settings.py: MEDIA_ROOT =

Re: get().delete() does not work, filter().delete() works?

2012-03-16 Thread Rainy
On Friday, March 16, 2012 2:50:25 PM UTC-4, Tom Evans wrote: > > 1) You have overridden the delete() method, and you don't call the > > super class method > Indeed, I had overridden it to create a delete column and forgot about it! Thanks. Rainy > -- You received this message because you

Re: get().delete() does not work, filter().delete() works?

2012-03-16 Thread Tom Evans
On Fri, Mar 16, 2012 at 6:33 PM, Rainy wrote: > Hi, I have a function that accepts a pk and deletes an object: > > Item.objects.filter(pk=pk).delete() > > If I change it to: > > Item.objects.get(pk=pk).delete() > > it no longer works, without any errors. I tried it using

get().delete() does not work, filter().delete() works?

2012-03-16 Thread Rainy
Hi, I have a function that accepts a pk and deletes an object: Item.objects.filter(pk=pk).delete() If I change it to: Item.objects.get(pk=pk).delete() it no longer works, without any errors. I tried it using exactly the same object. I looked at django docs for deletion, the only difference

Re: Django prefetch_related string parameter used for reverse lookup is inconsistence.

2012-03-16 Thread Suteepat Damrongyingsupab
Sorry, class Book should be: class Book(models.Model): author = models.ForeignKey(Author) publisher = models.ForeignKey(Publisher) price = models.DecimalField() -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

Django prefetch_related string parameter used for reverse lookup is inconsistence.

2012-03-16 Thread Suteepat Damrongyingsupab
Given that the following models: class Author(models.Model): name = models.CharField() class Book(models.Model): author = models.ForeignKey(Author) price = models.DecimalField() class Publisher(models.Model): name = models.CharField() In normal query:

Re: Will Django run on z/linux?

2012-03-16 Thread James Bennett
On Fri, Mar 16, 2012 at 12:06 PM, jc wrote: > We have a number of z/linux (z/vm s390) Linux servers and would like > to consider porting this application to one of the instances.  Will it > run on z? For Django to run on a platform, you need the following things: 1. The

Re: Will Django run on z/linux?

2012-03-16 Thread David Markey
Yup.. Should be no problem at all. On 16 March 2012 17:22, Dan Poirier wrote: > On Fri. 2012-03-16 at 01:06 PM EDT, jc wrote: > > > We have a number of z/linux (z/vm s390) Linux servers and would like > > to consider porting this application to one of

Re: Will Django run on z/linux?

2012-03-16 Thread Dan Poirier
On Fri. 2012-03-16 at 01:06 PM EDT, jc wrote: > We have a number of z/linux (z/vm s390) Linux servers and would like > to consider porting this application to one of the instances. Will it > run on z? It's Linux, so sure. (Now z/OS would be another story...) -- You

Will Django run on z/linux?

2012-03-16 Thread jc
We have a number of z/linux (z/vm s390) Linux servers and would like to consider porting this application to one of the instances. Will it run on z? Thanks, JC -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: A good Twitter Package

2012-03-16 Thread creecode
Hello coded kid, On Friday, March 16, 2012 2:30:06 AM UTC-7, coded kid wrote: Hi guys, does anyone know about a good django package for twitter > authorization? I tried using omab/django social auth, but the twitter > authorization is not working for me. Are you interested in oAuth

Re: Djano if statement help

2012-03-16 Thread J. Cliff Dyer
Well the first suspicious thing was that you were testing to see if it was equal to the string "0". That tells me you don't understand how equality works in python. Python is strongly typed. Strings and integers are not the same thing, and will never be equal to one another. Without more

Re: Djano if statement help

2012-03-16 Thread HarryBoy
If I set it to "Enabled" and then check if it is indeed {% if EnableLogUpload == "Enabled" %} it does not enter the if statement. > > What am I doing wrong?? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web

Re: Djano if statement help

2012-03-16 Thread Joel Goldstick
On Fri, Mar 16, 2012 at 9:25 AM, HarryBoy wrote: >> Sorry the '==' was a typo, its actually: >> >> EnableLogUpload = "Enabled" > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web

Re: Djano if statement help

2012-03-16 Thread HarryBoy
Anyone? > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/dOBYPgDjwHcJ. To post to this group, send email to django-users@googlegroups.com. To

Re: A little InlineModelAdmin help please?

2012-03-16 Thread Jeff Blaine
Thanks for the reply, Marc. On Thursday, March 15, 2012 4:32:48 PM UTC-4, Jeff Blaine wrote: > > Easier for me to just draw you a picture: > >++ >| noodle | >++ > | | >

Theme template designer form

2012-03-16 Thread Alec Taylor
I am creating a website which will allow people to post content with "fluff"! That is; users will apply choose from a selection of templates to apply to their content[1] before displaying it on my website. [1] Content contains no hyperlinks; just images and general manipulation text manipulation

Re: Djano if statement help

2012-03-16 Thread HarryBoy
> > Sorry the '==' was a typo, its actually: > EnableLogUpload = "Enabled" > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Tu0wfrtAPJUJ. To post to

Re: Djano if statement help

2012-03-16 Thread Tom Evans
On Fri, Mar 16, 2012 at 1:01 PM, HarryBoy wrote: >> Hi, thanks for the reply. > > > I printed the value and its actually 0 every time. > > Why is it 0 when I set it to EnableLogUpload == "Enabled"?? > > Thanks > '==' tests equality '=' assigns a rvalue Cheers Tom -- You

Re: Djano if statement help

2012-03-16 Thread HarryBoy
> > Hi, thanks for the reply. I printed the value and its actually 0 every time. Why is it 0 when I set it to EnableLogUpload == "Enabled"?? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Django-subscription

2012-03-16 Thread Stanwin Siow
Hello, I was wondering whether there are any links that teaches you how to integrate django-subscription into your app in detail? To give a general view of what i would be doing, i want to integrate the django-subscription so i can give recurring billing to my customers. So far what i have

Re: Djano if statement help

2012-03-16 Thread Joel Goldstick
On Fri, Mar 16, 2012 at 6:00 AM, HarryBoy wrote: > I have the following: > >               >                     name="EnableLogUpload" value="true"  {% if EnableLogUpload == '1' %} > checked="checked" {% endif %} />Enabled >                     name="EnableLogUpload"

Re: Add customize app filed to add user page

2012-03-16 Thread yillkid
Thanks for reply. Yes I have did it. But my question is add the data to the "add user" page. It looks link the interface "admin.site.register" but it actually in "user add template (/templates/admin/auth/user/add_form), thanks :) Joel Goldstick於 2012年3月16日星期五UTC+8下午5時31分13秒寫道: > > On Fri, Mar

Djano if statement help

2012-03-16 Thread HarryBoy
I have the following: Enabled Disabled Then the following if statement: {% if EnableLogUpload == '1' %} Enabled {% else %} Disabled {% endif %} The above code works as expected (If EnableLogUpload equals to true then

Re: Add customize app filed to add user page

2012-03-16 Thread yillkid
Thanks for reply ... ... :) But I have extent my UserProfile class success already. Now I can find the new column in UserProfile Table in database. But I want to add this extent data into my "add user" page. and access it. For example: I want to add a "valid duration" data when I add a new

Re: Reports

2012-03-16 Thread Alexey Luchko
We are using PDFs. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/EfQeowVhrBoJ. To post to this group, send email to django-users@googlegroups.com. To

Re: show ldap attributes in django

2012-03-16 Thread Marc Patermann
Hi, Marc Patermann schrieb (15.03.2012 16:39 Uhr): And a template: {{ text }} Which gives a dictionary with values of lists where most of the list have only one value. I can access single of them by {{ text.mail }} or {{ text.mail }}. My goal is to show whatever attribute there is with

Re: Add customize app filed to add user page

2012-03-16 Thread Joel Goldstick
On Fri, Mar 16, 2012 at 4:52 AM, yillkid wrote: > Hi all: > > I want add a filed in app to add user page (/admin/auth/user/ ), > > or > > Actually I just want to add a valid date (DateTIme Filed) in add user page, > > and this Filed I have create in UserProfile class already,

A good Twitter Package

2012-03-16 Thread coded kid
Hi guys, does anyone know about a good django package for twitter authorization? I tried using omab/django social auth, but the twitter authorization is not working for me. Would love to hear your opinion! Thanks! -- You received this message because you are subscribed to the Google Groups

Add customize app filed to add user page

2012-03-16 Thread yillkid
Hi all: I want add a filed in app to add user page (/admin/auth/user/ ), or Actually I just want to add a valid date (DateTIme Filed) in add user page, and this Filed I have create in UserProfile class already, then how I should do ? thanks. -- You received this message because you are

Pass model filed to add user page

2012-03-16 Thread yillkid
Hi all : I want to pass a DateTime Filed to the "add user page" ( /admin/auth/user/ ), anyone could give me a clue ? thanks . -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: django structure and basic flow

2012-03-16 Thread Daniel Hepper
> I am confused that different tutorial gives different method of doing > things. I want to know how to setup basic cms site, > what folder should I create, sometime people create apps, sometimes > they don't. There are different ways to structure your project, but if you want to use the database

Re: Query Set to search for a combination of model fields?

2012-03-16 Thread Guillaume Chorn
Shawn, man thanks! I actually had no idea about the pipe vs. ampersand distinction. I went ahead and changed my code to the following: def search(request): query = request.GET.get('q','') querywords = query.split(' ') lname='' for word in querywords[1:-1]: lname +=

Re: Query Set to search for a combination of model fields?

2012-03-16 Thread Matthias Kestenholz
On Fri, Mar 16, 2012 at 04:29, Shawn Milochik wrote: > Look at how the Q objects are being used in the example and it's clear why > that is. It's using the pipe (|) to do an "or" query. > > If you want to change how the search works you'll have to add more code: > > 1. Split