On Apr 2, 1:42 am, "christian.posta"
wrote:
> I would like to get some feedback on how others display the version of
> their apps to the users of the app.
>
> I tag each build/version of the app in SVN when I deploy to my
> clients, but i'm trying to figure out a good way to report that tag
> name
Ah perfect thanks! I looked to see if something had been submitted,
but couldn't find it.
On Apr 2, 3:26 pm, Karen Tracey wrote:
> On Sat, Apr 2, 2011 at 4:37 PM, Bryan wrote:
> > Is this a bug?
>
> Yes:http://code.djangoproject.com/ticket/15321
>
> Karen
> --http://tracey.org/kmt/
--
You rece
well, I ended up doing a sqlreset and dbshell and pasting it in there.
That worked but it seemed like maybe a bug so I posted it. Cheers!
On Apr 2, 5:21 pm, jd wrote:
> I've tried
>
> >python manage.py flush --database 'retail'
>
> ...and then changed the model a little.
>
> syncdb gives no o
Yes. Thanks for your replies.
I have one more question. I want to put all my configures into one
file and pass the file name by command line.
My django is deployed as in uwsgi, so I pass the command line by --
pyargv '-c /etc/myconfig.ini'.
In django, how can I retrieve this command line file name
Take a look at http://docs.python.org/library/configparser.html
On Sun, Apr 3, 2011 at 4:45 AM, Swordfish wrote:
> Hi! is your file in 'ini' format or simply in 'py'?
>
> Regards,
> Eugeny
>
> 02.04.11, 10:34, "hollando" :
>
>> Hi, some of my config store in a file not in settings.py. Are there
>
I've tried
>python manage.py flush--database 'retail'
...and then changed the model a little.
syncdb gives no output about table creation afterwards, and objects
that were in the db remain after the flush.
also tried ...
>python manage.py reset retail_store --database 'retail'
same thin
For the sake of clarity and future reference, let me suggest another
approach that will suffice for some use cases.
Sometimes your need can be solved simply by extending upon the original
login page, without rewriting anything. For example, if you would like to
take e-mails rather than usernames (
I suggest you to use django.contrib.auth app as your starting point:
1. Form:
http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/forms.py#L61
2. View
http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/views.py#L24
3. Template
http://code.djangoproject.com/
I suggest you to start from learning django.contrib.auth app sources.
Using them as your starting point should save a lot of your time:
1. Authorization form:
http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/forms.py#L61
2. Login view:
http://code.djangoproject.com/browser/d
On Sat, Apr 2, 2011 at 4:37 PM, Bryan wrote:
> Is this a bug?
Yes: http://code.djangoproject.com/ticket/15321
Karen
--
http://tracey.org/kmt/
--
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
Hi! is your file in 'ini' format or simply in 'py'?
Regards,
Eugeny
02.04.11, 10:34, "hollando" :
> Hi, some of my config store in a file not in settings.py. Are there
> any build in library doing that? Thanks
>
>
--
You received this message because you are subscribed to the Google Group
As far as I can tell, if one has three models, GrandparentModel,
ParentModel, and ChildModel, in which GrandparentModel defines a
unique field unique_field, Childmodel.validate_unique() will not check
the uniqueness of unique_field.
The fields to check are determined by ChildModel._get_unique_chec
My views have the standard decorator to automatically bounce clients
to the login page if they are not logged in
@django.contrib.auth.decorators.login_required
I would like to dynamically set the hidden next parameter in the login
template to the aforementioned page they were trying to access
Thank you, Jorge!
Yes, that helps a lot!
On Apr 2, 5:18 am, Jorge Bastida wrote:
> Hi Lj,
>
> > I am building a django web app that has a control panel with various
> > icons. Right now, the icons have href tags that load a new page when
> > the user clicks the icon. I want to change this to in
The trac system just rejected my submission as spam so I'm going to
keep it short and follow up with more detail if anyone cares.
Using SCGI a POST to a url handled by django that doesn't exist causes
flup to close the connection between the web server (lighttpd in my
case) and django. This doesn'
I like it very much, it helps me a lot. I believe it's worthy of using it
for every Django based project.
On Sat, Apr 2, 2011 at 9:54 PM, Eric Hutchinson <
eric.hutchin...@burgopakusa.com> wrote:
> I don't see the advantage of writing your own ajax views. the examples
> save maybe one, two lines
I don't see the advantage of writing your own ajax views. the examples
save maybe one, two lines over manually writing your own using plain
jquery. you still need to write javascript to submit the forms and
what not, so nothing is gained there. you still need to write a 'view'
only it's not quite a
Hi Sameer,
> What do you think about using Dajax and Dajaxice in Django? is it worth? or
> you like to write your own ajax code?
Probably the answer is... "It depends".
If you have 2 o 3 ajax functions and you doesn't want to add another
dependency, probably you should create your own views an
Hi Lj,
> I am building a django web app that has a control panel with various
> icons. Right now, the icons have href tags that load a new page when
> the user clicks the icon. I want to change this to instead call a
> jQuery function that will use ajax, or dajaxice, to render only the
> conten
19 matches
Mail list logo