Re: Time Zone Problem when following on tutorial

2014-06-24 Thread miked
On 25/06/2014 7:44 AM, Jerry Wu wrote:> Thanks, Mike. I still have a question. In your code, which part should I change in order to set the time zone to Asia/Shanghai? My settings uses Australia/Melbourne and Postgres stores time correctly as UTC+10 (or UTC+11 in daylight saving time). But

Re: admin generated form, change dropdown with selction from popup menu

2014-06-24 Thread Aeh. ABID
Is there a way to display a field value other than id in the textbox On Wednesday, June 25, 2014 6:11:27 AM UTC+1, Aeh. ABID wrote: > > When dropdown could hold a pretty long list which may slowdown the page > load, how can I override the drop-down menu in the change-form to a > "read-only input

Re: admin generated form, change dropdown with selction from popup menu

2014-06-24 Thread Aeh. ABID
Just found the answer here: https://groups.google.com/forum/#!topic/django-users/zjdbX5ipRqY http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.raw_id_fields

admin generated form, change dropdown with selction from popup menu

2014-06-24 Thread Aeh. ABID
When dropdown could hold a pretty long list which may slowdown the page load, how can I override the drop-down menu in the change-form to a "read-only input" that can be filled with value from popup window. -- You received this message because you are subscribed to the Google Groups "Django us

Re: Copied django project to shared host from repo - can't import settings

2014-06-24 Thread Lee
For mysite.fcgi I have: #!/home5/myorg/.virtualenvs/mydjango/bin/python import sys, os # Add a custom Python path. sys.path.insert(0, "/home5/myorg/.virtualenvs/mydjango") sys.path.insert(13, "/home5/myorg/django_projects/mysite") os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' from dja

Re: Copied django project to shared host from repo - can't import settings

2014-06-24 Thread carlos
Hi, maybe show the content mysite.fcgi and .htaccess, the error say not exist your project mysite maybe the path is not good in mysite.fcgi! Cheers On Tue, Jun 24, 2014 at 3:39 PM, Lee wrote: > Hello, > > I setup Django successfully on my shared Bluehost account following the > tutorial below:

Criar slideShow

2014-06-24 Thread Carlos Andre
Olá pessoal, tudo bem com todos? Gostaria de uma solução que permita referenciar fotos para m slideshow com até no máximo 5 fotos que seguirão ordem de inserção! tipo usando um id! Obrigado pela atenção de todos! -- You received this message because you are subscribed to the Google Groups "Djang

Re: Django wizard with one to many

2014-06-24 Thread Lachlan Musicman
Yes, it is. Without a thorough knowledge of what you are doing, I would recommend looking at condition_dict which is in the urls.py https://docs.djangoproject.com/en/1.6/ref/contrib/formtools/form-wizard/#using-a-different-template-for-each-form or the condition steps https://docs.djangoproject.

Re: Time Zone Problem when following on tutorial

2014-06-24 Thread Jerry Wu
Thanks, Mike. I still have a question. In your code, which part should I change in order to set the time zone to Asia/Shanghai? On Tuesday, June 24, 2014 7:26:52 AM UTC+8, Mike Dewhirst wrote: > > On 24/06/2014 8:34 AM, Jerry Wu wrote: > > Dear every one, > > > > I am following the tutorial

Copied django project to shared host from repo - can't import settings

2014-06-24 Thread Lee
Hello, I setup Django successfully on my shared Bluehost account following the tutorial below: http://www.nyayapati.com/srao/2012/08/setup-python-2-7-and-django-1-4-on-bluehost/ I am now having problems with a Django project I have copied from a GitHub repo to my Bluehost directory. I am getti

Django wizard with one to many

2014-06-24 Thread Henrique Oliveira
Hi there, I need to create a wizard that has an one-to-many relationship on step 2. These are my models: class Ticket(models.Model): user = models.ForeignKey(User) modality = models.CharField(max_length=3) drawing = models.ForeignKey(Drawing) type = models.CharField(max_length=1,

Re: How do I Iterate database object querysets

2014-06-24 Thread Roman Klesel
Hello, I would recommend to create a django form and feed the post data to this form. Because 1) the form will extract the post data for you 2) in the form you will be able the validate and clean the post data (you should definitively do that) The code that saves the data to the form could also l

Re: How do I Iterate database object querysets

2014-06-24 Thread G Z
> > for lis in Licenses.objects.values('code'): > for post_value in insert_data: > if lis in post_value: > license_tag += insert_data[lis] + ',' > so im trying that now but the problem is django is causing issues when iteratin

Re: How do I Iterate database object querysets

2014-06-24 Thread G Z
> > > according to what ive found the following should work but it doesn't > for lis in licenses: if lis.Licenses in insert_data: license_tag += insert_data[lis] + ',' -- You received this message because you are subscribed to the Google Groups "Djan

How do I Iterate database object querysets

2014-06-24 Thread G Z
I am posting data from a page with a dynamic set of licenses, I'm using the license_name as they key for the post values, then im building a string from the posted values. However I can't figure out how to iterate through the database object set. There is no other way for what im doing because i

Re: one form, many submits

2014-06-24 Thread Gunpreet Ahuja
On Saturday, February 20, 2010 9:07:57 PM UTC+5:30, David De La Harpe Golden wrote: > > On Sat, Feb 20, 2010 at 06:42:11AM -0800, Tom wrote: > > > Check request.POST.get('cancel') to see if cancel was clicked, > and request.POST.get('accept') to see if accept was clicked. > This was really h

Referencing Django List Objects From Query Question

2014-06-24 Thread G Z
How do I call django objects from a query for example licenses = Licenses.objects.all() how I get my licenses, then im trying to loop through licenses for every object from licenses that exist in a post save something to vc. if insert == 'yes': insert_data = request.POST.copy()

Re: Django Admin Login - Redirecting back to login page

2014-06-24 Thread Aaron Reabow
also try: LOGIN_REDIRECT_URL On Tuesday, 24 June 2014 16:55:21 UTC+2, Sergiy Khohlov wrote: > > Hello, > > Could you please paste your LOGIN_URL from your settings.py > > > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > > On Tue, Jun 24, 2014 at 5:40 PM, Діма Ревуцький > w

Re: Using session data to populate multiple forms

2014-06-24 Thread Aaron Reabow
Hi Daniel, Thanks for the response. What I am trying to get right is the ability to save session data across multiple forms. In an initial form, people can tell me some generic information about their department, role etc. It is then useful for me to save that information alongside their ans

Can't run tests when admin is part of INSTALLED_APPS?

2014-06-24 Thread John Rambo
If I try to run test suites in 1.7 with admin in INSTALLED_APPS, I get this... File "/django/core/management/commands/migrate.py", line 195, in model_installed (opts.auto_created and converter(opts.auto_created._meta.db_table) in tables)) AttributeError: 'bool' object has no attribute '_m

Re: Using session data to populate multiple forms

2014-06-24 Thread Daniel Roseman
On Tuesday, 24 June 2014 14:30:48 UTC+1, Aaron Reabow wrote: > > Hi All, > > I have been scratching around this for a bit now. > > Sometimes I *don't want people to have to register* on my site, but I do > want to *capture some information* about them and *reuse it across > multiple mini question

Should I use any ecommerce Django package for a Price Alert Website?

2014-06-24 Thread amit barik
I am trying to build a price tracking/alert website (like https://hukkster.com ). This website is not entirely a ecommerce website. Because there are so many Django ecommerce packages (like Oscar) out there, I was wondering if I should use one of them or just develop one inhouse? My requireme

Re: Django Admin Login - Redirecting back to login page

2014-06-24 Thread Sergiy Khohlov
Hello, Could you please paste your LOGIN_URL from your settings.py Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Jun 24, 2014 at 5:40 PM, Діма Ревуцький wrote: > I had same problem > In settings remove SESSION_COOKIE_DOMAIN or set correct domain > > понедельник, 6 июня 2011

Re: Django Admin Login - Redirecting back to login page

2014-06-24 Thread Діма Ревуцький
I had same problem In settings remove SESSION_COOKIE_DOMAIN or set correct domain понедельник, 6 июня 2011 г., 13:57:11 UTC+3 пользователь Aidan написал: > > I'm having trouble with the Django Admin. My login page appears ok at > http://127.0.0.1:8000/admin but when I try to login with a valid

Using session data to populate multiple forms

2014-06-24 Thread Aaron Reabow
Hi All, I have been scratching around this for a bit now. Sometimes I *don't want people to have to register* on my site, but I do want to *capture some information* about them and *reuse it across multiple mini questionnaires/forms*. I can happily set and get a session variable using the sess

WANTED: Photo Contest Package

2014-06-24 Thread André Meyer-Vitali
Hi all I'm organising a photography contest and would like to set up a web site for submission, display and voting of the pictures. Do you know of any django package or plugin that could be helpful? thanks in advance! André -- You received this message because you are subscribed to the Google

Re: Error: ImproperlyConfigured: The SECRET_KEY setting must not be empty

2014-06-24 Thread Lachlan Musicman
I find I get this error when I forget to set my settings, since I have a split settings set up: python manage.py --settings=app.settings.dev got to remember the --settings=app.settings.x On 24 June 2014 22:14, Tom Evans wrote: > On Tue, Jun 24, 2014 at 9:59 AM, Rini Michael wrote: >> Hi, >> i

Re: Error: ImproperlyConfigured: The SECRET_KEY setting must not be empty

2014-06-24 Thread Tom Evans
On Tue, Jun 24, 2014 at 9:59 AM, Rini Michael wrote: > Hi, > i was trying to install django_cron using pip install django_cron,but > unfortunately > now i find a error as > ImproperlyConfigured: The SECRET_KEY setting must not be empty > can anybody help me with this > Thanks in advance > > regard

Re: Static Analysis Tool

2014-06-24 Thread Tom Evans
There is also pyflakes. I've never met a static analysis tool that can correctly distinguish when something is wrong versus when something is misunderstood (by the tool). Therefore, whatever tool you use, you will have to spend some time telling it that certain things are false positives. Cheers

RE: Static Analysis Tool

2014-06-24 Thread Ilya Kazakevich
PyCharm will support DjangoLint inspections soon, I believe: http://youtrack.jetbrains.com/issue/PY-4554 Ilya Kazakevich, JetBrains PyCharm (Best Python/Django IDE) http://www.jetbrains.com/pycharm/ "Develop with pleasure!" >-Original Message- >From: django-users@googlegroups.com >[mail

Error: ImproperlyConfigured: The SECRET_KEY setting must not be empty

2014-06-24 Thread Rini Michael
Hi, i was trying to install django_cron using pip install django_cron,but unfortunately now i find a error as ImproperlyConfigured: The SECRET_KEY setting must not be empty can anybody help me with this Thanks in advance regards, Rini -- You received this message because you are subscribed to th