On Wed, 2009-06-24 at 03:20 -0700, alecs wrote:
> Hi! I'm trying to upload a large file (700Mb) and something wrong with
> django happens: First it starts caching enormously (4Gb of ram are
> used), than it starts to purge caches and starts swapping (1Gb of swap
> is used).
> Have you ever faced w
On Thu, 2009-06-25 at 06:43 -0700, steveneo wrote:
> BooleanField limits only to CheckBox? But I set
> widget=HiddenField It does not report error. HTML renders
> correctly, but actually, you can not use like that?!
http://docs.djangoproject.com/en/dev/ref/forms/fields/#booleanfield
You sho
> For those of you who use PyDev, have you found this to be an issue as
> well? Are there any solutions, like a plugin that adds the parent
> directory name to the tab?
Hello,
You get the full name within the eclipse window's name - the one from
the window manager.
I usually have only one appli
applied.
>
> Another weird thing is that firebug's "NET" tab shows only downloading
> the html, and no css or js files.
>
> Any ideas?
> TIA
Hi,
Are you sure you configured correctly ADMIN_MEDIA_PREFIX ?
What's your website url ?
Regards,
Xavier Ordoquy.
-
Hello,
I'm working for the first time on sessions with django and I'm facing
a strange behaviour.
on my main view, I do a del request.session['entity']
On my subviews, I set request.session['entity'] = 1 (for example)
After that, for any view, I do:
if request.session['entity']:
context
Hello,
I sometime faced this issue when the data were not properly formatted in the
database.
I mean, there was stored in the database through another system that did not
handle correctly charset conversions.
Sometime one stores unicodes or iso-8859-xx and says it is utf-8 or whatever.
What cou
Le 16 avr. 2010 à 03:18, CLIFFORD ILKAY a écrit :
> On 04/15/2010 09:13 PM, Shawn Milochik wrote:
>> There are probably a thousand blogging apps done in Django, because
>> it seems that a lot of people make one when they discover Django.
>>
>> However, I think you should give them the Wordpress
Hi,
Here's something better for your dev server:
from django.conf import settings
if settings.DEBUG:
urlpatterns += patterns('django.views.static',
(r'^%s(?P.*)$' % (settings.MEDIA_URL[1:],), 'serve', {
'document_root':
settings.MEDIA_ROO
cifying a virgule
> instead of os.path.join(), the path should be forward slash separated. Is
> there anything that looks askew about the code above?
>
> On Tue, Apr 27, 2010 at 5:28 PM, Xavier Ordoquy wrote:
> Hi,
>
> Here's something better for
Hi,
Filebrowser is a bit tricky to setup.
Did you had a look at 404 requests made by your browser ? There should be
something that isn't available at some point.
Took me some time to setup it up correctly the first time.
Regards,
Xavier.
Le 28 avr. 2010 à 04:57, Bobby Roberts a écrit :
> hey g
Hi,
I'm on OSX (snow leopard) with default shell, python but django 1.2 beta within
a virtual env. Having the django_bash_completion sourced, the django-admin.py
he completes correctly to "help".
Regards,
Xavier.
Le 29 avr. 2010 à 19:41, Martin Lundberg a écrit :
> Anyone on OSX who has had t
ce it adds absolutely nothing.
I used http://www.djangosnippets.org/snippets/962/ for supporting legacy
database with django 1.1 but I can't get it working for 1.2 correctly (I can
only get read but writes don't work).
Has someone a similar code snippet for Django 1.2 ?
Regards,
Xavi
Hi,
I currently have a foreign key for which the model should allow the selection
of a subset of objects depending on another object value.
Let's say model A has a foreign key on model B. Model A & B have a field called
restriction.
For a given A object, I'd like to display B objects that have
snippet: http://www.djangosnippets.org/snippets/962/
However, I just found that it does only work in one way. I do have both
children and parents with no distinction.
Does anybody has an idea of how to overcome the fact that the relation
direction matters ?
Regards,
Xavier Ordoquy.
--
You received
Hello,
Fixtures are described in the documentation, especially there:
http://docs.djangoproject.com/en/dev/howto/initial-data/#automatically-loading-initial-data-fixtures
You have to follow the name convention to get them automatically loaded.
Regards,
Xavier.
--
You received this message beca
Hi,
I have some trouble understanding how ModelAdmin do save models when those have
many to many fields.
Long story:
I have for one of my application overridden ModelAdmin class and the save_model.
Basicaly, the save_model is:
def save_model(self, request, obj, form, change):
super(Transla
Hi,
I'm banging my head against the wall with an issue in get_query_set.
I'm using django 1.2.1 and I'd like to filter the queryset results through a
date within get_query_set.
However, I noticed that with the dev. server or gunicorn, the get_query_set is
only called on the first request.
This
be possible that it only caches one part of the queryset ?
Regards,
Xavier.
Le 24 juin 2010 à 21:39, Daniel Roseman a écrit :
> On Jun 24, 6:36 pm, Xavier Ordoquy wrote:
>> Hi,
>>
>> I'm banging my head against the wall with an issue in get_query_set.
>>
&g
Le 25 juin 2010 à 00:23, commonzenpython a écrit :
> im new to mod_python, so could you please tell me how to set ash/media
> to serve statically with apache
Hi,
The documentation about Django seems pretty clear about static media to me.
Have a look at
http://docs.djangoproject.com/en/1.2/howt
Hi there.
I'm currently working on a project where I use a legacy database with a django
one.
I've setup the multi database support and it seems to work pretty well.
However, I'm getting an issue with testing.
I need a fixture to load data to both the legacy and Django's databases.
In order to m
Hi,
You're asking if you'd rather put all the business logic in pure python classes
or django models ?
I'm not sure there's a straight answer to this, esp with no information about
what you're trying to do.
Regards,
Xavier.
Le 4 août 2010 à 16:04, André A. Santos a écrit :
> hmmm...
> Dr tha
This relates to:
http://docs.djangoproject.com/en/dev/faq/general/#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names
Le 4 août 2010 à 17:02, André A. Santos a écrit :
> for exemple using MVC parttern how i
Hi,
The second database should be created. Maybe you want to double check you setup
a database router.
You also want to take care to fixture file name which expects you to add the
database name in the file name.
So far, the only issue I found with testing on multi database is that django
1.2 e
> If you ask to Java, C# developers about Python, then some of them should be
> know Python and have a good definition about it.
> If you ask to Java developers about C#, then all of them should be know it
> and have a good definition about it.
> If you ask to C# developers about Java, then a
Hi,
>> So far, the only issue I found with testing on multi database is that django
>> 1.2 expects all the tables are created on the second database which may not
>> always be the case (bug reported, I just uploaded a patch for that).
>
> Which patch/ticket is that? With my router, the second
Hi,
> I would prefer to instead auto-truncate the value (so I don't have an
> exception). Now, I can do this manually, but what I would really want is to
> have all of my models auto-truncate the value. (Not necessarily
> intelligently. Just cutting it off at the 999th character is fine.)
>
>
useful, I can investigate further about this message and make a
patch in order to output an appropriate message.
Regards,
Xavier.
Le 5 août 2010 à 09:28, Russell Keith-Magee a écrit :
> On Thu, Jul 29, 2010 at 6:02 PM, Xavier Ordoquy wrote:
>> Hi there.
>>
>> I'm cu
gee a écrit :
> On Thu, Aug 5, 2010 at 3:44 PM, Xavier Ordoquy wrote:
>> Hi Russ,
>>
>> Indeed, my investigations have lead me to #14025 which fixed the major issue.
>>
>> If I remember correctly the corrupted file part was due to the fact that I
>> was
Le 7 août 2010 à 06:44, Daniel França a écrit :
> My database is UTF-8, it's fine, doesn't?.
> I'm afraid to reinstall everything from ports and start to get a lot 64-32
> bits incompatible issues like happened before =/
I think that should be fine with a utf-8 DB.
Are you sure your tables are
Hi,
This will often happen when you have both model table created in the database
and then you add some field and syncdb.
Syncdb will not perform operation on tables that are already created, including
created new fields or intermediate tables.
However, if you start from scratch, this should be
7;ll need reinstall everything =S
>
> On Sat, Aug 7, 2010 at 6:49 AM, Xavier Ordoquy wrote:
>
> Le 7 août 2010 à 06:44, Daniel França a écrit :
>
> > My database is UTF-8, it's fine, doesn't?.
> > I'm afraid to reinstall everything from ports and sta
Sorry, I just woke up form a sleep :)
I notice you get-or-create a user.
However, did you try to call get or create with specifying the arguments ?
first_name = "...", and so on ?
Does it still give an error ?
Regards,
Xavier.
Le 7 août 2010 à 17:46, Xavier Ordoquy a écrit :
> I
in the database
>
> On Sat, Aug 7, 2010 at 12:54 PM, Xavier Ordoquy wrote:
> Sorry, I just woke up form a sleep :)
> I notice you get-or-create a user.
> However, did you try to call get or create with specifying the arguments ?
> first_name = "...", and so on ?
&g
;timezone'))
> language = models.CharField(_('language'), max_length=10,
> choices=settings.LANGUAGES, default=settings.LANGUAGE_CODE)
>
> def __unicode__(self):
> return self.user.username
>
> I tried to comment the line, but then the create_user abort with a
ython+psycopg on mac just sux.
>
>
> 2010/8/8 Daniel França
> tried, nothing :(
> I'm getting crazy with Mac OS, I think I'll go back to Linux :S
>
>
> On Sun, Aug 8, 2010 at 4:34 AM, Xavier Ordoquy wrote:
> It won't work by commenting the timezone field s
Please, install django_extentions, werkzeug debuger and try to see what exactly
where the issue is with the runserver_plus command (in browser debugger so
you'll get the variables that are missing here.
Most probably, your timezone field causes the issue.
Regards,
Xavier.
Le 9 août 2010 à 22:40
It is definitively an issue in your code.
syncdb won't run without complaining about the timezone field in your account
model.
Once commented, syncdb continues but at some point will fail because it expects
a site to be configured but at this point, the site table is not garanteed to
be there..
;
> On Tue, Aug 10, 2010 at 9:10 AM, Xavier Ordoquy wrote:
> It is definitively an issue in your code.
>
> syncdb won't run without complaining about the timezone field in your account
> model.
> Once commented, syncdb continues but at some point will fail because it
Le 10 août 2010 à 15:10, Daniel França a écrit :
> It's very useful Andy, sympathy is welcome =)
> I was programming under linux, and I guessed that would be really straight
> forward port my project to OSX, I was wrong :(
You know you are unfair. Unless you have strong evidence, you shouldn't
h.
> Maybe it's a silly mistake, but I think I should receive a message that
> clearly say me that.
>
>
> On Tue, Aug 10, 2010 at 10:35 AM, Xavier Ordoquy wrote:
>
> Le 10 août 2010 à 15:10, Daniel França a écrit :
>
>> It's very useful Andy, sympathy
s it?
>
> On Tue, Aug 10, 2010 at 12:05 PM, Xavier Ordoquy wrote:
>
> Actually, it doesn't work on Linux either with the same settings.
> Please update django-timezones to 0.2.dev2 which is what pinax uses (pip
> install --extra-index-url=http://dist.pinaxproject.com/de
Hi,
On top of the package found on mysql, you have to check that mysql_config is in
the path (it is provided by the package).
In a shell just run the command.
If you just installed the mysql package for osx, you will want to open a new
shell to get an updated path.
Regards,
Xavier.
Le 16 août
Hi,
Do you mean that you have to refresh the user browser page every minute or that
every minute your website application has to pull another information system ?
In either case, I hardly see the connection between your issue and the fact
that Django has nothing to do with thinking in PHP. PHP i
Please, it is not the first time we ask you to describe as much as you can if
you got an issue.
We don't have access to your code and what you do before/after.
Saying just "it doesn't work" could be because:
- you didn't turn on your computer
- you didn't started the dev server
and a lot of oth
Hi,
You may have several django versions in your path.
The settings under apears to be django 1.1
In your project, try:
$ python manage.py shell
>>> import django
>>> print django.__file__
>>> print django.VERSION
Regards,
Xavier.
Le 25 août 2010 à 17:41, Robbington a écrit :
> I'm using Sqlite
Also, what kind of users are you speaking about ? system, database or django
users ?
Do you have the admin site available in the urls ? Did you uncomment both the
url and the auto discovering part ?
Did syncdb showed django_admin_log table being created (or can you check it has
been created) ?
res',
>
> Then I have su postgres
> postg...@myvps:/var/www/django/$ python manage.py syncdb
>
> That upates the database, with all the admin database stuff, but it
> doesnt find anything at the admin url
>
>
> On Aug 31, 12:42 pm, Xavier Ordoquy wrote:
>>
Hi,
You need to edit de default site name and url.
By default the site application creates an www.example.com site. Just log in
the admin and change it.
Regards,
Xavier.
Le 6 sept. 2010 à 16:58, Sithembewena Lloyd Dube a écrit :
> Hi all,
>
> I added a sitemap app to my Django 1.2.1. app to a
Hi,
You are catching a KeyError while it throws and IndexError ;)
Regards,
Xavier.
Le 20 sept. 2010 à 17:04, grimmus a écrit :
> Hi,
>
> On the homepage of my website i list 1 random ad in the right column.
> In my view i retrieve it like so:
>
> side_ad = SideAd.objects.filter(active=1).ord
Hi,
Are you sure you don't get a thread safety issue ?
Do you have your own template tags for those forms ?
Regards,
Xavier.
Le 20 sept. 2010 à 18:42, intrepidweb a écrit :
> Hi all,
>
> Last week I ported a site that gets 50k+ pageviews/day from a PHP/
> mySQL stack to Django/Postgresql. It h
Hi,
I'd like to know whether someone managed to get a many to many relationship
with a keyless joint table.
I got a legacy database which uses that and although I can get it working on
read mode, I have issues with writing.
I'm using this snippet (works fine with django 1.1):
http://djangosnipp
Hi tom,
There are no reason why your code should work.
>>> shrubentry = shrub(uid_string_id = rootentry.uid_string)
>>> treeentry = tree(uid_string = rootentry.uid_string)
I hardly see why you are using uid_string_id on the first while using
uid_string (without the _id) on the second.
If you re
Well, the documentation already tells you about it:
http://docs.djangoproject.com/en/1.2/topics/files/#the-built-in-filesystem-storage-class
Le 30 sept. 2010 à 09:49, Federico Capoano a écrit :
> Is this not possible? I wonder why Django force to upload files only
> in a certain directory and doe
> Yes you're right, I'm trying it out. I'll post a solution when I'm
>> done.
>>
>> On 30 Set, 10:10, Xavier Ordoquy wrote:
>>
>>
>>
>>> Well, the documentation already tells you about
>>> it:http://docs.djangoproject
Hi,
Although I haven't done it, the following link may give you a good overview of
how to do it:
http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/
Regards,
Xavier.
Le 30 sept. 2010 à 13:34, Thomas Weholt a écrit :
> On Thu, Sep 30, 2010 at 1:20 PM, Stodge wrote:
>> Is anyone awa
Hi,
Could you elaborate on your issue ?
If you have hard time positionning you can loop on you list items and use
loop.counter or loop.counter0 and use the divisibleby tag to display line start
and end
Regards,
Xavier.
Le 30 sept. 2010 à 14:15, Martin Tiršel a écrit :
> Hello,
>
> I have a
Hi,
New_page isn't a valid ID. By default, the id field is a number.
Regards,
Xavier.
Le 5 oct. 2010 à 13:52, chocolatero a écrit :
> Hi Friends! I'm working with django and i have this error:
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/myapp/New_page/
> Django Version:
Hello,
If you need help, please provide accurate information on your issue.
Starting with "I get a page not found" will most probably get your mail
immediately discarded.
What page is not found ? what is your setting (dev server, apache, nginx,
proxy+webserver) ? and so on.
Regards,
Xavier.
Le
Hi,
You may want to look at the authentication contrib application that comes with
Django.
Esp here: http://docs.djangoproject.com/en/1.2/topics/auth/#id7
Another solution if you intend to have totally different templates would be to
check within the view the user state and render a different t
Hi,
You should contact your system administrator if you don't have any
login/password. If you installed mysql by yourself, read your distribution
guides or the installation guide. There's no universal settings for this and it
will depends on what/where/how you installed it.
As for importing dat
Hi,
Did you make sure your webserver refreshed the application code ? I sometime
had similar issue because different processes had different code versions and
this leads to a totally random behavior.
Also, if you don't have issues while DEBUG=True, you will want to make sure you
have a 404.html
Hello,
I'm getting a weird and random bug with the admin part while using tinymce in
the custom media.
It happens that on the list view, I get a broken editable boolean field looking
like:
http://python.altazeo.com/js/tiny_mce/themes/simple/langs/en.js";>rm-1-nouvo_entite"
id="id_form-1-nouvo_
Hi,
> Hi, I've been trying to use TinyMCE in my admin pages, I've followed
> this tutorial but so far have had no luck.
>
> http://code.djangoproject.com/wiki/AddWYSIWYGEditor
I also followed this tutorial and had few issues.
I went for this solution:
http://code.djangoproject.com/wiki/AddWYSIW
Hi,
You probably want to recompile a couple of things -if not all- after you
upgraded to snow leopard from a previous version.
Default is now 64 bits instead of old 32bits, so this can cause some issues.
In your case, you may have some 32bits libraries and some 64bits.
I personally got rid of my
Hi,
You should read Django's esp how to use custom comment class.
You should have a line in your setting file for overriding the default
class.
Xavier
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to djan
Hi,
I have a class with an image field.
Every time the image is changed, I need to resize the image to several formats.
At the moment, I do that every time the class which contains the image is saved.
However, I'd like to improve that a bit and only resize whenever the image has
changed.
Is ther
Hi,
> Some of our more common models are shared throughout our app ecosystem
> and we frequently run into a problem with get_absolute_url/permalink/
> etc of generating required URLs, in particular looking at user A's
> interaction with a model vs user B's that may occur in a completely
> separate
Hello,
> /home/inzolo/webapps/budgetsite/lib/python2.5
You probably want /home/inzolo/webapps/budgetsite/lib/python2.5/site-packages
instead if it's a virtual env.
Xavier.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
Hi,
I'm not sure you give enough details or evidences on HttpResponse being slow.
Are you 100% sure that DB access have been made ? Don't forget query sets are
lazy, ie database accesses are not done when you define your queryset.
I got a website with something like 4 (small) DB queries. Without
Hello,
I believe {{form.as_ul}} is for prototypes but once you get deeper into the
project you most probably want to throw it, only use {{form.field}} and define
label in html within your template.
Xavier.
Le 26 mars 2010 à 14:18, Thierry a écrit :
> Hi,
>
> I want to differentiate CSS style
Hi
Le 13 mars 2012 à 18:11, larry.mart...@gmail.com a écrit :
> From within a template can I find out the URL that caused the template
> to be invoked?
You usually should have the request object in your template. See
https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRe
Le 13 mars 2012 à 18:40, Larry Martell a écrit :
> On Tue, Mar 13, 2012 at 11:26 AM, Xavier Ordoquy wrote:
>> Hi
>>
>> Le 13 mars 2012 à 18:11, larry.mart...@gmail.com a écrit :
>>
>>> From within a template can I find out the URL that caused the template
&
ble with Python & Django. First
part will most probably speak to non technicals.
Regards,
Xavier Ordoquy.
Linovia.
--
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
would argue that once you hit performance issues - with a decent code base
- you'll probably be making enough money to invest on a scalability issues.
Regards,
Xavier Ordoquy,
Linovia.
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
Hi,
Have you called is_valid() on the form before that ?
Regards,
Xavier Ordoquy,
Linovia.
Le 28 mars 2012 à 15:57, Marcin a écrit :
> Consider the following stack trace (all relevant code is shown in the stack
> trace):
>
> In
Hi,
I'm not sure I clearly understood your issue.
Do you want some choice fields to limit their choices according to another
choice field value ?
Regards,
Xavier.
Le 4 avr. 2012 à 15:09, Jaroslav Dobrek a écrit :
> Hello,
>
> is there a way to calculate default values for certain fields based
Hi,
That's for CharFields :)
IntergerFields in forms have max_value and min_value.
Regards,
Xavier,
Linovia
Le 5 avr. 2012 à 18:12, Hum a écrit :
> does max_length work for IntegerFields?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" grou
Hi,
I've never faced such issue with Django on OSX.
Do you use or import non pure python apps ?
What python version do you use ? Stock osx one ? homebrew ? homemade ?
Regards,
Xavier.
Le 19 avr. 2012 à 18:16, Harald Sigh Andertun a écrit :
> I'll attach a screenshot. It works for some time, but
Hi,
You should replace django.generic in the urlspatterns string with
django.views.generic
Regards,
Xavier Ordoquy
Linovia.
Le 1 mai 2012 à 16:30, Gerald Klein a écrit :
> Hi, I am having a problem, where as django doesn't find the generics module.
> Here is my urls.py
>
>
Hi,
What does you form html tag looks like ? Sounds like you're sending the
updateview form to the createview.
Regards,
Xavier Ordoquy,
Linovia.
Le 13 mai 2012 à 11:59, Michael Ackerman a écrit :
> My updateview seems to be creating another object instead of updating the
> objec
)
Regards,
Xavier Ordoquy,
Linovia.
Le 13 mai 2012 à 21:19, Michael Ackerman a écrit :
> Yes they are using the same template.
> Its a very basic template:
> {% extends "base.html" %}
> {% block main %}
> {% csrf_token %}
> {{ form }}
>
>
> {% endblock
No problem.
Redirecting after a POST is a good habit. This will avoid duplicated data if
the user reloads the page because if you don't redirect, you'll get a second
POST.
Regards,
Xavier Ordoquy,
Linovia.
Le 14 mai 2012 à 17:42, Michael Ackerman a écrit :
> Thank you very much
Hi,
get is a termination statement for querysets.
please use filter instead.
Regards,
Xavier Ordoquy.
Le 22 mai 2012 à 10:34, wchildsuk a écrit :
> Hi,
>
> I'm trying to use generic class based views to edit a specific
> queryset but I can't see to get my code working.
Hi,
If you follow what the doc says, there shouldn't be any issue
(https://docs.djangoproject.com/en/1.4/howto/static-files/#basic-usage)
Regards,
Xavier Ordoquy,
Linovia.
Le 22 mai 2012 à 15:31, Amr Abdel-wahab a écrit :
> I need the exact steps to have this thing working right b
e web server (see apache setenv as mentioned in earlier post).
Regards,
Xavier Ordoquy,
Linovia.
Le 15 juin 2012 à 07:36, kenneth gonsalves a écrit :
> On Thu, 2012-06-14 at 23:46 +0200, Hendrik Speidel wrote:
>> as an alternative you can provide your own Storage implementation like
&g
Hi,
The site entry is usually created when the syncdb is run.
What Django version are you using ? If you're using the development version,
please remove it and install a stable version.
Regards,
Xavier Ordoquy,
Linovia.
Le 16 juin 2012 à 23:16, Laurence MacNeill a écrit :
> I'm
Hi,
1)
uncomment the two lines to enable admin as it is said:
from django.contrib import admin
admin.autodiscover()
2) use:
url(r'^admin/', include(admin.site.urls)),
Regards,
Xavier Ordoquy,
Linovia.
Le 19 juin 2012 à 17:53, Sabbineni Navneet a écrit :
> This is m
Hi,
If you just return the original urls.py, there's no way we can know what you
did and this will prevents us from helping you.
As mentioned by Babatunde, you should give the traceback and the modified urls
(use dpaste.com for that).
Regards,
Xavier Ordoquy,
Linovia.
Le 19 juin 2012 à
I remember correctly I've faced some issues while overriding the test
runner, but I can't remember them.
I don't have much informations as I'm on vacation. If you poke me by the end of
next week I will give you more informations.
Good luck,
Xavier Ordoquy,
Linovia.
--
You receive
common settings on my second application does not encounter
> models defined in "common".
> I've tried changing the order of configuration INSTALLED_APPS
> But it still fails.
>
> Thanks for the help
Do you have a common directory or common.py in the app2 directory ?
Re
s/modelforms/#inline-formsets
Regards,
Xavier Ordoquy,
Linovia.
--
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-user
rg/writing/dynamic-form-generation/
Regards,
Xavier Ordoquy,
Linovia.
--
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-
Hi brian,
If you are using mod_wsgi with apache or nginx, reloading or restarting your
servers may help.
Regards,
Xavier Ordoquy,
Linovia.
Le 5 oct. 2012 à 21:03, Brian a écrit :
> I get this error sporadically. If I refresh the screen 3 or 4 times it loads
> without the error.
>
Hi,
class Poll(models.Model):
# ...
def __unicode__(self):
return self.question
class Choice(models.Model):
# ...
def __unicode__(self):
return self.choice
You probably have used self.question in the Choice class instead of self.choice
Regards,
Xavier Ordoquy
The order in which the applications are declared is important.
If I'm not mistaken, the files in STATICFILES_DIRS will override the
application's static directories.
Regards,
Xavier Ordoquy,
Linovia.
Le 7 oct. 2012 à 06:52, easypie a écrit :
> I have my project setup so ./manage.py
Hi,
As Samuel said, the first step is to install Django Debug Toolbar to see what's
going on with your queries.
Then you'll probably be interested in
https://docs.djangoproject.com/en/1.4/ref/models/querysets/#prefetch-related
Regards,
Xavier Ordoquy,
Linovia.
Le 20 oct. 2012 à 05
Hi,
Your static folder should be declared in STATICFILES_DIRS if you want him to be
served (see
https://docs.djangoproject.com/en/1.4/howto/static-files/#basic-usage about
that).
Please take care to give another name to STATIC_ROOT for production settings.
Regards,
Xavier Ordoquy,
Linovia
collectstatic command.
This is not for development and this is not where you should store your
project's static files.
Regards,
Xavier Ordoquy,
Linovia.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, sen
geField (see below)
in a model takes a few steps:"
Regards,
Xavier Ordoquy,
Linovia.
--
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,
static
> ├── static
> ├── templates
> ├── urls.py
> └── wsgi.py
Then you add the application in your INSTALLED_APPS and you're done.
Regards,
Xavier Ordoquy,
Linovia.
Le 4 nov. 2012 à 00:23, Ryan a écrit :
> Hi,
>
> I have been wondering where people
1 - 100 of 215 matches
Mail list logo