Re: Custom Login page in Django

2014-03-20 Thread Aryak Sengupta
Yes I was trying to implement it for learning django properly. Alright , I got your point. On Thu, Mar 20, 2014 at 9:55 PM, C. Kirby wrote: > Are you building your own authentication system as a learning opportunity > or to actually use in a production system? If it is for a

how to fix the OSerror[Errno 5] input/output error when deploy django project with uwsgi and nginx?

2014-03-20 Thread jie . li0117
My enviorent is : UBUNTU 12.04, django 1.6.1 python 3.3.4 nginx 1.4.7 and uwsgi 2.0.2 The problem came when I registered a new user,Exception location is where the code is "if form.is_valid()". Exception value:[Errno 5] Input/output error I just test it with the django's development server,

how to fix the OSerror[Errno 5] input/output error when deploy django project with uwsgi and nginx?

2014-03-20 Thread jie . li0117
My enviorent is :ubuntu 12.04, django 1.6.1 python 3.3.4 nginx 1.4.7 and uwsgi 2.0.2 The problem came when I registered a new user,Exception location is where the code is "if form.is_valid()". Exception value:[Errno 5] Input/output error I just test it with the django's development server,

[ANNOUNCE] Django 1.7 beta 1 released

2014-03-20 Thread James Bennett
We're getting closer to 1.7! Details in the blog post here: https://www.djangoproject.com/weblog/2014/mar/20/django-17b1/ -- 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

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-20 Thread Mike Dewhirst
On 21/03/2014 11:13am, Russell Keith-Magee wrote: On Thu, Mar 20, 2014 at 6:50 PM, Venkatraman S > wrote: On Sat, Mar 15, 2014 at 7:11 AM, Russell Keith-Magee > wrote: On

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-20 Thread Russell Keith-Magee
On Thu, Mar 20, 2014 at 6:50 PM, Venkatraman S wrote: > > On Sat, Mar 15, 2014 at 7:11 AM, Russell Keith-Magee < > russ...@keith-magee.com> wrote: > >> >> On Sat, Mar 15, 2014 at 7:19 AM, Jonathan Baker < >> jonathandavidba...@gmail.com> wrote: >> >>> Does that mean that the

Django Tutorials: NoReverseMatch at /polls/1/vote/

2014-03-20 Thread wasingej
I am trying to create the project described by the Django Tutorials. However, I have reached a problem that I am stuck on after implementing the voting forms described in tutorial 4 (https://docs.djangoproject.com/en/1.6/intro/tutorial04/). When I run my website and go to the

adding a layer on a shapefile and then displaying map on a html page.

2014-03-20 Thread Nicholas Perez
Hello All. I wanted to ask anyone who can help me with two issues. First off, i am using goeodjango to upload a shape file of new york state to my admin page. Next i wanted to add a layer on top of that file that has locations for movies, restaurants, etc ON TOP of the file i have. Is it

How allow public query & download of info from my db

2014-03-20 Thread Nicholas Tapia
Hey Django Community! I'm newer to programming and was pointed in the direction of django for this project. The idea is that people can make their own custom queries and download load it from my db. So far I'm thinking that using a form is they way to go to accept this information. But from

Re: I am unable to get the choice field to validate on creating users. it doesn't make sense at all.

2014-03-20 Thread sashank reddy
Tom, In addition it still doesn't explain why I am unable to traceback the point of exception. How can there be an exception when the only thing there are are few perfect prints I am always invariably getting the "Validation completed print" for desig_name field. Then I get "BaseForm:

Re: I am unable to get the choice field to validate on creating users. it doesn't make sense at all.

2014-03-20 Thread sashank reddy
Hi Tom, I did try an override meanwhile. I added, def initialize_designation(self): print("Initializing designation") self.desig_group = forms.ChoiceField(choices=choice_des()) return to my form class. This will override the desig_group that is previously declared. I call this in the view after

Re: Django Custom User Admin Login

2014-03-20 Thread Alexander Myasnov
суббота, 21 декабря 2013 г., 15:50:15 UTC+4 пользователь vinaya...@iiitd.ac.in написал: > > Also, from initial tests it appears that django-guardian is not setting > permissions with custom user. I wrote a small manage.py script to test that: > > from django.core.management.base import

Re: Custom Login page in Django

2014-03-20 Thread C. Kirby
Are you building your own authentication system as a learning opportunity or to actually use in a production system? If it is for a production system then...don't. There is quite a bit of code in django Users to handle passwords and keep passwords safe and authentication secure. If you want to

Re: Simple User login not working.

2014-03-20 Thread C. Kirby
If you are using stock User accounts why are you writing a login view? Just use django.contrib.auth.views.login You can pass it your own template in the url definition url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name='login' ) On Wednesday, March

Re: [GSOC] Django-based project for the neuroinformatics community: neurostars.org

2014-03-20 Thread Venkatraman S
On Thu, Mar 20, 2014 at 3:46 PM, Roman Valls Guimerà wrote: > At http://incf.org, we launched a Stackoverflow-like website to engage the > > neuroscientific community: > > http://neurostars.org > > > Just curious : Is this based on askbot? Or did you develop the whole thing?

Re: Custom Login page in Django

2014-03-20 Thread François Schiettecatte
You need to have sessions if you want login so you can tie a browser to a user, and the CSRF is tied to the session cookie. F. On Mar 20, 2014, at 11:28 AM, Aryak Sengupta wrote: > Alright... Thanks a lot. But do I really require using sessions for >

Re: Custom Login page in Django

2014-03-20 Thread Aryak Sengupta
Alright... Thanks a lot. But do I really require using sessions for implementing this simple functionality ... Or is it just a bad design that I had been trying? On 20 Mar 2014 20:28, "François Schiettecatte" wrote: > See

Re: Custom Login page in Django

2014-03-20 Thread François Schiettecatte
See https://docs.djangoproject.com/en/1.6/topics/http/sessions/ On Mar 20, 2014, at 10:50 AM, Aryak Sengupta wrote: > Can you please elaborate > > On 20 Mar 2014 20:17, "François Schiettecatte" > wrote: > You may be missing some

Re: Custom Login page in Django

2014-03-20 Thread Aryak Sengupta
Can you please elaborate On 20 Mar 2014 20:17, "François Schiettecatte" wrote: > You may be missing some middleware, eg: > > 'django.contrib.sessions.middleware.SessionMiddleware', > 'django.middleware.csrf.CsrfViewMiddleware', > >

Re: Custom Login page in Django

2014-03-20 Thread François Schiettecatte
You may be missing some middleware, eg: 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions', Maybe your browser is rejecting cookies. François On Mar 20, 2014, at 10:43 AM, Aryak Sengupta

Re: Custom Login page in Django

2014-03-20 Thread Aryak Sengupta
Yes I do Where am I going wrong then? On 20 Mar 2014 20:06, "Robin Lery" wrote: > do you have {% csrf_token % } in your forms? > > > On Thu, Mar 20, 2014 at 7:36 PM, Aryak Sengupta > wrote: > >> I am new to Django (but not new to python) and I

Re: Custom Login page in Django

2014-03-20 Thread Robin Lery
do you have {% csrf_token % } in your forms? On Thu, Mar 20, 2014 at 7:36 PM, Aryak Sengupta wrote: > I am new to Django (but not new to python) and I am looking forward to > create a customized page using django. I have read about django's inbuilt > authentication

[GSOC] Django-based project for the neuroinformatics community: neurostars.org

2014-03-20 Thread Roman Valls Guimerà
Hello Django users, >From django-developers mailing list I have been told that list is more >appropiate for this type of announcement... so here I go, sorry if it bothers you. At http://incf.org, we launched a Stackoverflow-like website to engage the neuroscientific community:

Custom Login page in Django

2014-03-20 Thread Aryak Sengupta
I am new to Django (but not new to python) and I am looking forward to create a customized page using django. I have read about django's inbuilt authentication system but I want build it from scratch So here are the few ideas I am stumbling upon : 1. Creating a *users* class in the

Re: submit buttons in django

2014-03-20 Thread Harjot Mann
On Thu, Mar 20, 2014 at 4:12 PM, Venkatraman S wrote: > Add the required view to redirect once this button is clicked. Will the data be saved into database with this method? -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily Dairy:

Re: I am unable to get the choice field to validate on creating users. it doesn't make sense at all.

2014-03-20 Thread Tom Evans
On Thu, Mar 20, 2014 at 10:12 AM, sashank reddy wrote: > Hi Tom, > > I have not understood what you have said. Shouldn't choice_desig be called > every time I instantiate it in the view with the form = New_user_form(). I > thought I was creating an object of

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-20 Thread Venkatraman S
On Sat, Mar 15, 2014 at 7:11 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Sat, Mar 15, 2014 at 7:19 AM, Jonathan Baker < > jonathandavidba...@gmail.com> wrote: > >> Does that mean that the default="" functionality is implemented by the >> ORM, instead of in the database layer?

Re: submit buttons in django

2014-03-20 Thread Venkatraman S
Add the required view to redirect once this button is clicked. -Venkat On Thu, Mar 20, 2014 at 9:18 AM, Harjot Mann wrote: > I have a form in my app and after entering data into that form I > submit that form but I want an another submit button like "Submit and > Add

Re: Simple User login not working.

2014-03-20 Thread Venkatraman S
I cannot see the screenshot, but two things: 1. Why GET? :-/ 2. Did you check if the users are 'active'? i.e, active flag set? -Venkat On Thu, Mar 20, 2014 at 1:51 AM, Don Fox wrote: > My project has two superusers who have access to the Django Administration > and who

Re: I am unable to get the choice field to validate on creating users. it doesn't make sense at all.

2014-03-20 Thread sashank reddy
Hi Tom, I have not understood what you have said. Shouldn't choice_desig be called every time I instantiate it in the view with the form = New_user_form(). I thought I was creating an object of New_user_form every time I do that. Regards, Preetam On Wednesday, 19 March 2014 22:11:52 UTC+5:30,