Re: South tutorial is not working

2012-04-13 Thread Jacco Flenter
Hi Alex,

It looks like south was not added to the INSTALLED_APPS list in your
settings.py

Regards jacco
On Apr 13, 2012 11:05 PM, "alex3627"  wrote:

> Hi all,
>
> as adviced to use "South" to do something 'better', I have installed it
> and tried to follow the appropriate tutorial here:
>
> http://south.aeracode.org/docs/tutorial/part1.html
>
> However, the first command "./manage.py schemamigration southtut
> --initial" resulted in the following error:
>
>   Unknown command: 'schemamigration'
>
> I guess I need to update some environment settings? To use a different
> manage.py? To restart everything from scratch? I am sorry for all those
> very beginner questions regarding django, but I am a very beginner, trying
> to follow the tutorial, which just don't wok for me.
>
>
> Any advice is greatly appreciated.
>
>
> Alex
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/7UwZyFYSj9cJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Users getting logged out frequently

2012-01-06 Thread Jacco Flenter
What kind of software stack are you running? Apache and... or nginx and...?

On Fri, Jan 6, 2012 at 10:51 AM, Arun P  wrote:

> @Kevin:
>
> The backend used is the default Database backend.
> There are no other projects which share the same domain space.
>
> I guess will have to write a middleware to see what is happening to the
> cookies.
>
> Thanks.
>
>
> On Fri, Jan 6, 2012 at 2:26 PM, Kevin  wrote:
>
>> Which backend is storing the session data?  If session data is being
>> stored in the cache(which is normally the recommended way), what
>> caching backend are you using?  If you are using locmem cache backend,
>> this might be your problem, change the cache backend to something more
>> stable for production.
>>
>> Do you have other Django projects you manage?  If so, is this the only
>> project seeing this type of problem, or are other projects also having
>> issues like this as well?
>>
>> There are many variables in what could cause a session to fail.  For
>> debugging purposes, write a simple middleware that keeps track of what
>> is going on with the session cookie.  Create a debugging app which can
>> store this debugging info to a file or a database table.
>>
>> If all else fails, set-up a foolproof session set-up, store sessions
>> directly into the database or as files in the file system to a
>> directory which you know will not remove any of these files.  If you
>> use file-based sessions, you can check the timestamps there to see
>> which ones are becoming stale easily.  You can create a django view
>> which can list the directory and it's timestamps for easily watching
>> remotely(be sure to make the view superuser only).
>>
>> On Jan 5, 4:34 pm, Javier Guerra Giraldez  wrote:
>> > On Thu, Jan 5, 2012 at 2:35 PM, Dennis Lee Bieber <
>> wlfr...@ix.netcom.com> wrote:
>> >
>> > >That would have to be a very erratic clock setting -- are there
>> > > systems that don't use an NTP server to synchronize the clock? (I
>> think
>> > > all of my computers synchronize on a weekly basis).
>> >
>> > virtual machines can have terribly erratic clock behaviour.  over a
>> > minute of error in an hour is not unheard of.  of course, most
>> > hypervisors now specifically handle this problem and keep the VM's
>> > clock a lot more stable
>> >
>> > NTP is the solution, but it's not as trivial to do correctly enough as
>> > in real hardware.
>> >
>> > --
>> > Javier
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>
>
> --
> Digitally,
> Arun Prabhakar
> https://www.facebook.com/digitalpbk
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: load-on-startup equivalent in django?

2011-10-20 Thread Jacco Flenter
Another option is to create a command and run it via a cronjob

On Thu, Oct 20, 2011 at 2:55 PM, kenneth gonsalves 
wrote:
>
> On Thu, 2011-10-20 at 13:38 +0800, Ken wrote:
> > I wonder how do I do the same in django framework. Or there is some
> > other way to run some background code periodicly?
>
> look at djcelery
> --
> regards
> Kenneth Gonsalves
>
> --
> You received this message because you are subscribed to the Google Groups
"Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: New user login problem

2011-09-16 Thread Jacco Flenter
How did you set the password? There is a password field in the "change user"
form in the admin, but it does not contain the user's password in clear
text: it is the result of some cryptography on the password. It might be a
good idea to go to the change user form and check if the password field
contains something in the lines of "sha1$x$xxx..."

Regards,
Jacco

 P.s. if you are on the "change user" page you can use the "change password
form" below the password field to modify the current password

On Fri, Sep 16, 2011 at 2:20 PM, marios  wrote:

> Thank you.
>
> I did what you are saying. And I have tried creating several new
> users, but the error message is the same.
>
> On 16 sep, 08:49, "Szabo, Patrick \(LNG-VIE\)"
>  wrote:
> > Are you sure you've used the right credentials ?!
> > Can you log as the admin ?!
> > If so try to create another user and log in as such.
> >
> > . . . . . . . . . . . . . . . . . . . . . . . . . .
> > Ing. Patrick Szabo
> >  XSLT Developer
> > LexisNexis
> > Marxergasse 25, 1030 Wien
> >
> > mailto:patrick.sz...@lexisnexis.at
> > Tel.: 00431 534521573
> > Fax: +43 (1) 534 52 - 146
> >
> > -Ursprüngliche Nachricht-
> >
> > Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com]
> Im Auftrag von marios
> > Gesendet: Freitag, 16. September 2011 13:14
> > An: Django users
> > Betreff: New user login problem
> >
> > I am a new user of Django with not much experience in programming. I
> > am following the tutorial.
> > In the Administration module I have created a new user with some
> > permissions, but when I try to logging in as this new user appear an
> > error message ("Wrong user or password")
> > Could you help me?
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group athttp://
> groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to customize a form field, CSS style things.

2011-09-16 Thread Jacco Flenter
Hi Kevin,

For this you might want to use something like django-uni-form:
http://readthedocs.org/docs/django-uni-form/en/latest/

Regards,
Jacco

On Fri, Sep 16, 2011 at 1:58 PM, Kevin.X  wrote:

> Dave,
> Thanks for your reply. But I want a more general way to specify the
> class of a widget. Is that a little boring when you want a text input
> with class 'text', but you have to call forms.CharField with the
> widget param every time?
>
>
> On Sep 16, 7:21 pm, Dave  wrote:
> > Does this page :
> https://docs.djangoproject.com/en/dev/ref/forms/widgets/#django.forms...helpsyou
>  ?
> >
> > n [1]: from django import forms
> >
> > In [2]: class CommentForm(forms.Form):
> >...: name = forms.CharField(
> >...:
> widget=forms.TextInput(attrs={'class':'special'}))
> >...:
> >
> > In [3]: MyForm = CommentForm()
> >
> > In [4]: MyForm.as_p()
> > Out[4]: u'Name:  type="text" class="special" name="name" />'
> >
> > Dave
> >
> > On Fri, 16 Sep 2011 02:41:24 -0700 (PDT)
> >
> >
> >
> >
> >
> >
> >
> > "Kevin.X"  wrote:
> > > Hi, folks
> > > Is there any simple way to customize a form filed's style? I want to
> > > add CSS class to a filed according to it's type. Say,  > > type="text"> should have a class named 'text',   tag should
> > > have a class 'select', and so on. The way I want to try is that added
> > > class attribute to widget according to widget's class name when
> > > initial a form. Is that a good way for my purpose? I really do not
> > > want to write html forms for so many Models, and I cannot use selector
> > > like input[type...], cause I need to support IE6.
> > > Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.