Re: Dynamic querysets?

2016-12-23 Thread Andrew Beales
typo: # urls.py url(r'^(?P[A-Z]{2})', views.state_home, name="state_home"), On Saturday, December 24, 2016 at 7:35:12 AM UTC, Andrew Beales wrote: > > You can pass strings from URLs as arguments into your Django view > functions. > > Assuming your Jurisdiction model already has a "name" field,

Re: Dynamic querysets?

2016-12-23 Thread Andrew Beales
You can pass strings from URLs as arguments into your Django view functions. Assuming your Jurisdiction model already has a "name" field, make sure it also has a "postal_code" field (consider renaming the model State?) Your urls and views can be something like: # urls.py url(r'^(?P[A-Z]{2})', v

Re: django.db.migrations.graph.NodeNotFoundError:

2016-12-23 Thread Collin Anderson
Hi, Do you want to copy and paste your error message? (I assume it's similar, but it might have some better clues.) My guess you have a migration that's referencing a migration file that was deleted or something. Collin On Thursday, December 22, 2016 at 7:33:48 PM UTC-6, skerdi wrote: > > I h

Re: ProgrammingError: relation "auth_user" does not exist.

2016-12-23 Thread Collin Anderson
Hi, Have you tried running ./manage.py makemigrations and then ./manage.py migrate? That's needed to actually create the table. Collin On Thursday, December 22, 2016 at 12:25:58 PM UTC-6, Biplab Gautam wrote: > > I tried to set up custom user model by inheriting from AbstractBaseUser as > inst

Re: existing database connectivity

2016-12-23 Thread Collin Anderson
Hi, You could try re-installing psycopg2 to see if that fixes it. Collin On Thursday, December 22, 2016 at 1:55:53 AM UTC-6, Rasika wrote: > > > I am followed the steps as I am getting in tutorials > when I run the command : > python manage.py migrate > this is giving me following error > >

Re: MultiWidget not rendering

2016-12-23 Thread Collin Anderson
Hi, I think you want something like this. class Fourteen(forms.Form): mywidget = forms.DateField(widget=DateSelectorWidget()) Collin On Monday, December 19, 2016 at 1:13:17 PM UTC-6, Farhan Khan wrote: > > Unfortunately that does not display. > In the template I had it as {{ fourteen }} and

Re: Password hashing parameters selection methodology description

2016-12-23 Thread Tim Graham
>From the "new stable branch" tasks [0]: Increase the default PBKDF2 iterations in django.contrib.auth.hashers.PBKDF2PasswordHasher by about 20% (pick a round number). Run the tests, and update the 3 failing hasher tests with the new values. Make sure this gets noted in the release notes (see t

When I migrate the database, I get this get error message: django.db.migrations.exceptions.NodeNotFoundError.

2016-12-23 Thread skerdi
I have deleted the database, migrations, .pyc files, upgraded and downgraded Django. I'm not able to fix it. Any suggestions, please? System check identified no issues (0 silenced). Unhandled exception in thread started by Traceback (most recent call last): File "C:\Python27\lib\site-

Password hashing parameters selection methodology description

2016-12-23 Thread Martin Koistinen
Django has a very nice implementation for hashing passwords using PBKDF2 and a number of iterations to increase the work-load. Thanks! I know this is very customizable and I know how to do this. This post is not about "how". What I would like to know is the methodology and "inputs" into decidin

Re: Advise for first project in Django

2016-12-23 Thread Vijay Khemlani
Yes, it is feasible As a starting project i find it a bit too complicated, at least the listening online part On Fri, Dec 23, 2016 at 12:39 PM, imed chaabouni wrote: > Hello, > > > I am a Tunisian novice developer, and I am about to make my first project > in Django this year after studying Pyt

Advise for my first project Django

2016-12-23 Thread imed chaabouni
Hello, I am a Tunisian novice developer, and I am about to make my first project in Django this year after studying Python. First thing comes to mind as a project was making a website music and listening online, so, I'd like to know if it's feasible or not ? and if you can advise me whether

'RegexURLResolver' object has no attribute 'default_args'

2016-12-23 Thread jon
I am a newbie to Django, coming from PHP/Yii. I have gotten to the part 4 of the official Django tutorial but can't seem to get by this error. I have looked online and in this forum but cannot find anything on this specific error. Error: AttributeError at /polls/1/vote/ 'RegexURLResolver' obj

Advise for first project in Django

2016-12-23 Thread imed chaabouni
Hello, I am a Tunisian novice developer, and I am about to make my first project in Django this year after studying Python. First thing comes to mind as a project was making a website music and listening online, so, I'd like to know if it's feasible or not ? and if you can advise me whether

Re: How can I access field values generically?

2016-12-23 Thread C. Kirby
Happy to help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googl

Re: Django stops working with RuntimeError: populate() isn't reentrant

2016-12-23 Thread pradam programmer
this is the traceback i am getting.. (dj-1.7)mahiti@mahiti:~/SST$ python manage.py runserver Traceback (most recent call last): File "manage.py", line 14, in execute_from_command_line(sys.argv) File "/home/mahiti/dj-1.7/local/lib/python2.7/site-packages/ django/core/management/__init__.py"

Re: Django stops working with RuntimeError: populate() isn't reentrant

2016-12-23 Thread Babatunde Akinyanmi
How about the stack trace? On 22 Dec 2016 16:43, "pradam programmer" wrote: > I restarted hundred times still can't able to rectify it > > On 22 Dec 2016 9:07 pm, "ADEWALE ADISA" wrote: > > Restart the server > On Dec 22, 2016 4:27 PM, "pradam programmer" > wrote: > >> Hi Guys, >> I am unable