Re: Custom password validation

2015-04-14 Thread Frank Bieniek
Hi Larry, You could configure the routes in the urls.py, take the create user route and plug in your CustomPasswordForm... ... customization example of the userena urls for the normal frontend ... url(r'^(?P[\.\w]+)/password/$', userena_views.password_change, {"pass_form": PasswordChange

Django handle new ManyToManyField items with get_or_create()

2015-04-14 Thread Doc
Help me, django-users, you're my only hope :D Hi all, my name is Filippo, I'm from Italy and I'm totally stuck on this problem... I have a model with a ManyToManyField and in my view I want to be able to add new options to the generated selectbox. How can I handle those new items with get_or_

Backward query is not working with GEO Manager

2015-04-14 Thread aarti sawant
I am using Geomanager for storing MultiPolygon data. I have below tables: il class Customer(gismodels.Model): is_active = models.CharField(max_length=15, default="Inactive", choices= ACTIVE_CHOICES) name = models.CharField(max_length=255) organisation_name = models.CharField(max_length

Re: Custom password validation

2015-04-14 Thread Larry Martell
On Tue, Apr 14, 2015 at 4:18 AM, Frank Bieniek wrote: > Hi Larry, > > You could configure the routes in the urls.py, take the create user route > and plug in your CustomPasswordForm... > ... > customization example of the userena urls for the normal frontend > > ... url(r'^(?P[\.\w]+)/password/$',

Re: MEDIA_URL doesnt work in windows but works on linux

2015-04-14 Thread dk
maybe I need to simplify my question. how do I use media_url in windows? On Wednesday, April 8, 2015 at 10:56:27 AM UTC-5, dk wrote: > in my settings > MEDIA_ROOT = os.path.join(BASE_DIR, 'media') > MEDIA_URL = "/media/" > > > my view to accept files. > def request_page(request): > #tod

Re: MEDIA_URL doesnt work in windows but works on linux

2015-04-14 Thread Stephen J. Butler
How doesn't it work? 1. Does the uploaded file appear where you expect it to? 2. If you construct the URL properly in your browser, can you access it directly? 3. What is the URL being output in your templates? On Tue, Apr 14, 2015 at 9:44 AM, dk wrote: > maybe I need to simplify my question. >

Changing module as per CSV content

2015-04-14 Thread Kishan Mehta
Hi, I have following CSV file : Sample #,Gender,Handedness 1,Female,Right-handed 2,Male,Left-handed 3,Female,Right-handed 4,Male,Right-handed Models.py : class CsvStore(models.Model): sample_number = models.IntegerField(null = True) gender = models.CharField(max_length=6)

Re: Django Admin should really support Twitter Bootsrap

2015-04-14 Thread David Gleba
I am a novice here with Django. I am trying to understand your question more deeply. I agree with your ideas. I tried the following and it seemed to work OK, although I may not have tried all aspects. https://github.com/django-admin-bootstrapped/django-admin-bootstrapped Is this close to what