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 in has constant requirement
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" gr
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 e
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.
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 tabl
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
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 Grou
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:
> src="/home/mehmet/internet_projeleri/sit
>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:
> /home/mehmet/internet_projeleri/site4ust/unnamed/
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/'
STA
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:
>
>> It is also possible
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 django-users@googlegroup
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 and
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 t
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', 'MED
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 docs.djangoproject.com and
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 Django project.
>
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 D
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?
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 'MEDIA_ROOT', 'MEDIA_URL'
> setti
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 if
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
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 bo
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 = models.Char
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 w
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
comma
26 matches
Mail list logo