Re: Why is there no view for sign up in django.contrib.auth.views?

2013-04-05 Thread Russell Keith-Magee
On Sat, Apr 6, 2013 at 8:40 AM, Cody Scott wrote: > If I want users to sign up for my site, I need to make a register view, > register form and a register template. > > Why is there a view and form for every other user account action (login, > logout, etc.) > > Logging

Why is there no view for sign up in django.contrib.auth.views?

2013-04-05 Thread Cody Scott
If I want users to sign up for my site, I need to make a register view, register form and a register template. Why is there a view and form for every other user account action (login, logout, etc.) -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Implementing User login expiration

2013-04-05 Thread Nikolas Stevenson-Molnar
How about creating request middleware to sign out deactivated users? Something like: if request.user.profile.expired: logout(request) If you're concerned about the extra database hit per request, then maybe cache the expiration? expire_date = cache.get("%d_expire" % request.user.id) if not

Implementing User login expiration

2013-04-05 Thread John DeRosa
I have a Profile table that's 1:1 with the User table. Each Profile row has an account_expiration field. I want to invalidate users when their accounts expire. By "invalidate", I mean: They can't log in, and they can't use the system any more. The closer I look, the more complicated it seems.

Re: Can i access my database with Django?(Urgent)

2013-04-05 Thread Dow Street
Depending on what you're trying to do, I think you should be able to configure two separate databases in your settings file - one for the auth app (user tables, etc.) and one for your existing database. Then use a database router to point each app to the right one. This way the additional

Re: General Apache Deploy Strategy

2013-04-05 Thread Mike Dewhirst
On 6/04/2013 5:48am, Bill Freeman wrote: Just to be clear, are you saying that svn lets you do check ins on a private branch when you are not connected to the network (and thus can't access the central repository)? No. I said ... That is true if the SVN repo is on the network. But there are

django 1.5 + firebird with python 3 support

2013-04-05 Thread maxi
Hi everybody, The new firebird sql backend (fdb based) [1] with python 3 support was just updated in the master branch. Any feedback will be appreciated. Thanks. Maxi. [1] https://github.com/maxirobaina/django-firebird -- You received this message because you are subscribed to the Google

Re: static file rendering help

2013-04-05 Thread Fatih Tiryakioglu
I tried both of them, but it seems it isn't the problem.. -- 5 Nisan 2013 Cuma 23:14:20 UTC+3 tarihinde jondbaker yazdı: > > From a quick glance it appears that the file source you've included in the > html is not specifying a file extension. > > Try: >

Re: static file rendering help

2013-04-05 Thread Jonathan Baker
>From a quick glance it appears that the file source you've included in the html is not specifying a file extension. Try: ...instead of... On Fri, Apr 5, 2013 at 1:43 PM, Fatih Tiryakioglu wrote: > Thank you. > > The shortcut of the picture: >

Re: static file rendering help

2013-04-05 Thread Fatih Tiryakioglu
Thank you. The shortcut of the picture: /home/mehmet/internet_projeleri/site4ust/unnamed/60830071673353216.jpg In the template I have written the line below to render a jpg file. And in the settings: MEDIA_ROOT = '/home/mehmet/internet_projeleri/site4ust/unnamed' MEDIA_URL = '/unnamed/'

Re: General Apache Deploy Strategy

2013-04-05 Thread Bill Freeman
Just to be clear, are you saying that svn lets you do check ins on a private branch when you are not connected to the network (and thus can't access the central repository)? On Thu, Apr 4, 2013 at 7:30 PM, Mike Dewhirst wrote: > On 5/04/2013 12:36am, Bill Freeman wrote:

New book: Instant Django 1.5 Application Development Starter

2013-04-05 Thread megaBos
good job -- 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

easy-thumbnails

2013-04-05 Thread Sanjiv Jhangiani
I am trying to learn to use easy-thumbnails, which is necessary for Userena. Now, in the easy-thumbnails 'ReadMe' file it shows: {% load thumbnail %} But...when I am loading an underlying photo, I also have to use my 'media-url', like this: {% if entity.photo %} --> {% endif %} Well

Re: New book: Instant Django 1.5 Application Development Starter

2013-04-05 Thread Navid Shaikh
On Friday, April 5, 2013 1:44:47 PM UTC+5:30, Mauro Rocco wrote: > > Hi everybody, > I just wrote a book to get started with Django and I really hope that the > book will drive more developers to use Django and increase the success that > this great framework is already having. > Thanks also

Re: static file rendering help

2013-04-05 Thread Navid Shaikh
On Friday, April 5, 2013 11:16:00 AM UTC+5:30, Fatih Tiryakioglu wrote: > > Hi all, > > I want to render back "user uploaded images" via template. I pass the > shortcuts to the template, but template can't show it: only small image > symbol. How can i show it up. I tryed some 'MEDIA_ROOT',

Re: Getting an AttributeError while creating a Django project

2013-04-05 Thread Olga Zasenko
You were right. So I fixed the Path. But I'm still getting the same error. On Wednesday, March 27, 2013 7:12:05 PM UTC+2, Tom Evans wrote: > > On Wed, Mar 27, 2013 at 4:39 PM, Olga Zasenko > > wrote: > > Hi, everybody! > > I'm following the instructions on website

Re: Getting an AttributeError while creating a Django project

2013-04-05 Thread Olga Zasenko
It's frustrating On Wednesday, March 27, 2013 7:12:05 PM UTC+2, Tom Evans wrote: > > On Wed, Mar 27, 2013 at 4:39 PM, Olga Zasenko > > wrote: > > Hi, everybody! > > I'm following the instructions on website docs.djangoproject.com and > trying > > to create my very first

Re: request.FILES empty, I think I am doing everything correctly

2013-04-05 Thread John
Oh, and thanks for the input on the csrf token. I just moved up to Django 1.5 and was responding to the change about the csrf token no longer being enclosed in a , I thought that might have something to do with the problem. On Thursday, April 4, 2013 5:38:58 PM UTC-4, John wrote: > > This is

Re: request.FILES empty, I think I am doing everything correctly

2013-04-05 Thread John
Ah, stupid me. I just realized that the submit is being caught and handled using a JQuery .post() so the data isn't actually sent as multipart/form-data. I guess I need to do a bit more work in the submit code to make it responsive to the enctype. Can anyone tell me if this just won't work?

Re: static file rendering help

2013-04-05 Thread Rafael E. Ferrero
i just use de url template tag. 2013/4/5 Fatih Tiryakioglu > Hi all, > > I want to render back "user uploaded images" via template. I pass the > shortcuts to the template, but template can't show it: only small image > symbol. How can i show it up. I tryed some

Re: request.FILES empty, I think I am doing everything correctly

2013-04-05 Thread Daniel Roseman
On Thursday, 4 April 2013 22:38:58 UTC+1, John wrote: > I am sure that there must be a problem with the html but this is driving > me crazy. Probably some stupid typo. > > When I set a breakpoint following the if request.POST the request.FILES is > an empty dictionary. > > How would you know

Creating a admin-field, containing checkboxes. The data of this fields is stored in the string format

2013-04-05 Thread Дмитрий Кольдяев
I`m trying to create form field for Django admin backend In database it should be CharField field, contains "0" and "1" values with 24*7 length. In admin panels I want to see them as 7 fields with 24 checkboxes each. If checkbox is checked coressponding position of the string sets to "1", else

New book: Instant Django 1.5 Application Development Starter

2013-04-05 Thread Mauro Rocco
Hi everybody, I just wrote a book to get started with Django and I really hope that the book will drive more developers to use Django and increase the success that this great framework is already having. Thanks also to PacktPublishing that aims to help sustain the projects which it publishes

Implementing query with Django ORM - left join with length() and replace() functions

2013-04-05 Thread Brad Buran
I'm trying to replicate a query using Django's ORM; however, I'm having a bit of difficulty figuring out how to accomplish it. The model that I'm querying is defined as: class Word(models.Model): objects = WordManager() spelling = models.CharField(max_length=128) ipa =

Re: Packaging django, python and a project for one click setup on a windows machine

2013-04-05 Thread Jani Tiainen
5.4.2013 11:44, R R kirjoitti: Hi, is there a way to package Python, Django and a Django Project which will enable the user to set it up with just one click? What i'm intending to do is to send it to couple of people who will set it up on their windows machines and then click on a desktop icon

Packaging django, python and a project for one click setup on a windows machine

2013-04-05 Thread R R
Hi, is there a way to package Python, Django and a Django Project which will enable the user to set it up with just one click? What i'm intending to do is to send it to couple of people who will set it up on their windows machines and then click on a desktop icon which will run the runserver

Re: request.FILES empty, I think I am doing everything correctly

2013-04-05 Thread Tomas Ehrlich
Hi John {% csrf_token %} must be definitely inside the tag. It renders . Please try it and tell if it works. Cheers, Tom Dne Thu, 4 Apr 2013 14:38:58 -0700 (PDT) John napsal(a): > This is Django 1.5 > Python 2.7.3 > MYSQL Database > > Here is the model that I am

Re: Trouble with CSS/Static Files

2013-04-05 Thread Mike Dewhirst
On 5/04/2013 2:33pm, Vibhu Rishi wrote: Hi, >Have you ran >$ manage.py collectstatic Can you explain why I need to do this on my dev machine when I am not deploying it to production ? If I look at the docs at https://docs.djangoproject.com/en/dev/howto/static-files/#deployment , it