I do it in the same way. I think there is no need here make here
something more complex
--~--~-~--~~~---~--~~
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@googlegro
Nice, just have to get on James to slam it into Django-profiles.
Knowing him though, he'll rewrite it and then put thirty pages of
documentation in it.
Nice contribution.
Andrew wrote:
> Just released a how-to and some code on our blog:
>
> http://blog.fluther.com/blog/2008/09/04/mogilefs-for-
Just released a how-to and some code on our blog:
http://blog.fluther.com/blog/2008/09/04/mogilefs-for-django/
Praise can be sent directly to me, scathing criticism of the code can
be directed to my partner.
See you at djangoCon!
--~--~-~--~~~---~--~~
You receiv
I'm looking around at python web frameworks and I've heard some good
stuff about django. I mostly need something to do the presentation
level.
In general I like the declarative style of tag libraries like jsp and
asp .net. They don't mix code and html (which encourages separation
between presenta
I count 12 available middleware classes at
http://docs.djangoproject.com/en/dev/ref/middleware/,
however I can not find a complete listing of the best order to place
them. I have read tips here and there about what to do with some of
them, but can someone please provide me with the definitive lis
Oh, it's OK, I droped the database and rebuilt the database.
On 9月4日, 下午1时26分, nonight <[EMAIL PROTECTED]> wrote:
> no, the comments system is new ,not upgrading from the old style.
>
> On 9月4日, 上午10时18分, Joshua Jonah <[EMAIL PROTECTED]> wrote:
>
> > Did you upgrade the comments system from the
On Fri, Sep 5, 2008 at 1:53 AM, bkev <[EMAIL PROTECTED]> wrote:
>
> Ronny,
>
> Thank you so very much for your input; it has helped this newbie user
> a great deal. The one outstanding problem I'm having here (and it's
> the last field in my model...) is that I'd actually like to use a
> FloatFiel
For now I've commented out that error in django/core/management/
validation.py on line 121 and 122.
#if from_model == to_model and f.rel.symmetrical:
#e.add(opts, "Many-to-many fields with
intermediate tables cannot be symmetrical.")
I'm sure there was
Thanks Malcom, I apperciate it!
On Sep 4, 8:49 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2008-09-04 at 18:46 -0700, Brandon Taylor wrote:
> > So, next stupid question :)
>
> > These fields all derive from forms, not models.
>
> Not true. All the fields in django.contrib.localfla
On Thu, 2008-09-04 at 18:46 -0700, Brandon Taylor wrote:
> So, next stupid question :)
>
> These fields all derive from forms, not models.
Not true. All the fields in django.contrib.localflavor.us.forms derive
from form fields. All the ones in django.contrib.localflavor.us.models
derive from m
So, next stupid question :)
These fields all derive from forms, not models. How are we supposed to
use these as we did previously in the admin? Registering a model with
a field defined using USPhoneNumber, ZipCode, etc throws an error that
says 'X' field is missing in the form.
On Sep 4, 8:34 pm
Thanks everyone. I guess I just overlooked the localflavor
documentation.
Kind regards,
Brandon
On Sep 4, 8:30 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2008-09-04 at 18:23 -0700, Brandon Taylor wrote:
> > Hello everyone,
>
> > Is anyone else missing USStateField? None of my mo
On Thu, 2008-09-04 at 18:23 -0700, Brandon Taylor wrote:
> Hello everyone,
>
> Is anyone else missing USStateField? None of my models that use this
> field are validating. I've tried trunk and the 1.0 official release I
> get the same error on both versions.
>
> If you look in django > db > mod
On 04-Sep-08, at 8:40 PM, Robert Dailey wrote:
> concern with the structure I presented above is how I will configure
> Apache2 to handle serving static content. Also, the fact that Django
> requires an absolute path for the templates directory makes this more
> of a management nightmare.
anywa
USStateField is now located at
django.contrib.localflavor.us.models.USStateField, as documented here:
http://docs.djangoproject.com/en/dev/ref/contrib/localflavor/#united-states-of-america-us
On Sep 4, 9:23 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> Is anyone else missing
Its there, just moved to localflavor, try the following:
from django.contrib.localflavor.us.models import *
then instead of using models.USStateField, just use USStateField
PhoneNumberField is also there.
Brandon Taylor wrote:
> Hello everyone,
>
> Is anyone else missing USStateField? None of
My bad. I see it's not in the latest version of the documentation :
http://docs.djangoproject.com/en/dev/ref/models/fields/#model-field-types
I guess we can just make a list of static choices using the states
list in localflavor.us
On Sep 4, 8:23 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> H
Hello everyone,
Is anyone else missing USStateField? None of my models that use this
field are validating. I've tried trunk and the 1.0 official release I
get the same error on both versions.
If you look in django > db > models > fields > __init__.py
You will not find USStateField, although it'
Join Yuwie and get paid to use a social network just like Myspace.
--~--~-~--~~~---~--~~
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 unsubsc
Hi, Karen,
> > Can I include my Model's or AdminModel's method into AdminModels
> > list_filter?
> No, the filtering is done at the database level.
Thanks. I've added Boolean field with default value and overrode the
Model's
save() method to update that field with calculated value from the
othe
Is it more practical if i put "date_based.archive_index" in the URL
pattern?
--~--~-~--~~~---~--~~
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
Benedict Verheyen schreef:
>
> I did some more testing
> When i execute the sql from the psql command line, the first time it gives an
> error, the 2nd time it doesn't ?! How weird is that :)
> Date style is set to 'iso, ymd'
>
> psql webshop
> Welcome to psql 7.4.19, the PostgreSQL interactive
In my models, I have an author variable in the Post model.
On Sep 4, 6:06 pm, unklbeemer <[EMAIL PROTECTED]> wrote:
> Is there a way in my template to show entries only by a certain author
> of the post? I have been looking and have been unsuccessful.
--~--~-~--~~~---
Benedict Verheyen schreef:
> Thanks for the info.
> I'm seems i'm unable to set the correct datestyle to get this to work.
>
> When i run it from a python shell, i do indeed get the same error:
>
> python manage shell
> >>> from django.db import connection, backend
> >>> cursor = connection.c
ekellner schreef:
> The expected date format is a per-connection level setting. (Called
> "DATESTYLE" in postgresql). There is also a default format if the
> connection doesn't specify.
>
> I strongly suspect that this mismatch between formats is actually
> happening between the database a
It's seemd that Django has set /accounts/profile as default page after
login successfully.
I wonder if we can re-direct it to a custom page?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
Is there a way in my template to show entries only by a certain author
of the post? I have been looking and have been unsuccessful.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to thi
I've updated the patch attached to #3591 to be cleanly applicable to
r8965 - i.e. post the 1.0 release. I didn't have to make any
significant changes to the code itself, just to a couple of the unit
tests which were explicitly checking for module representations rather
than app instances.
http://
Hi Sean,
I'm very interested in how you made the ColorField work as I didn't
manage to do that !
Help appreciated !
Regards,
Guillaume
On 21 juil, 21:05, Sean Legassick <[EMAIL PROTECTED]> wrote:
> On 8 Jul 2008, at 04:24, Leaf wrote:
>
>
>
> > Does anyone know if there is such thing as a Col
Sorry guys, I just need a tip :
where do you get your models.ColorField from ? I've upgraded to django
1.0, and don't have it !
Regards,
Guillaume
On 30 août, 16:03, Leaf <[EMAIL PROTECTED]> wrote:
> Of course. I just look at the error actually occurs on, not the
> context. I guess even Python
Hi,
I would like to translate a django project, but my templates are very
verbose, so I would like to have a localized version of each template
file.
So I changed the basic "return render_to_response(...)" in my views by
the following code:
local_code = request.LANGUAGE_CODE or settings.LANGUAG
I just wanted to let people know that the get-together is still on, if
people are interested.
There's more information here: http://django.meetup.com/3/
Let me know if you have any questions.
Jonathan
On Aug 20, 9:22 pm, Jonathan Nelson <[EMAIL PROTECTED]> wrote:
> I'm planning a get togeth
2008/9/4 John M <[EMAIL PROTECTED]>:
>
> I never thought I'd say this, but it's a little TOO QUICK. Maybe
> 3min ? It's not long enough to really get me interested, but I don't
> want to take too much time / detail that I start learning the product.
>
> Overall though, the quality and idea are a
I never thought I'd say this, but it's a little TOO QUICK. Maybe
3min ? It's not long enough to really get me interested, but I don't
want to take too much time / detail that I start learning the product.
Overall though, the quality and idea are awesome, keep it up.
John
On Sep 3, 2:07 pm, "I
Following is what I want to achieve, any clues on how to achieve the
following in Django orm and mysql without composite key support from
django
Any workarounds, any one is aware of.
thanks
copying straight from
http://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html
For MyISAM and
On Thu, Sep 4, 2008 at 2:29 PM, pavel srb <[EMAIL PROTECTED]> wrote:
> please, due to http://www.djangoproject.com/weblog/2008/sep/02/security/
> i would like to know, when there will be security patch for debian
> etch version
I follow the Debian bug tracker and lists for Django-related items,
On Thu, Sep 4, 2008 at 4:47 PM, Robert Dailey <[EMAIL PROTECTED]> wrote:
>
> On Sep 4, 3:39 pm, Robert Dailey <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I plan to host my production copy of my django project on a linux/
> > apache setup, however for my development I want to do a checkout
> > throu
On Thu, Sep 4, 2008 at 1:45 PM, Denis BUCHER <[EMAIL PROTECTED]>wrote:
>
> Hello !
>
> I have a problem installing django. I followed the instructions but then :
>
Which instructions, exactly? There are various options (installing under
python's site-packages, creating a symbolic link in site-pa
2008/9/4 KillaBee <[EMAIL PROTECTED]>
>
> At the site admin, when I click on the add user I get this error.
>
> TemplateSyntaxError at /admin/auth/user/add/
>
> Invalid block tag: 'include_admin_script'
>
> Request Method: GET
> Request URL:http://10.0.0.20:8000/admin/auth/user/add/
>
On Sep 4, 3:39 pm, Robert Dailey <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I plan to host my production copy of my django project on a linux/
> apache setup, however for my development I want to do a checkout
> through subversion and work exclusively on windows as I develop. This
> means I want to be a
Hi,
I plan to host my production copy of my django project on a linux/
apache setup, however for my development I want to do a checkout
through subversion and work exclusively on windows as I develop. This
means I want to be able to run just the test server for django on
windows while I develop t
I am new my self but it sounds like the URLs not pointing the right
place. One thing it might be is the setting.py his the wrong path a
the installed app or root_urlconf. I am new too, so hope it helped.
On Sep 4, 12:45 pm, Denis BUCHER <[EMAIL PROTECTED]> wrote:
> Hello !
>
> I have a problem
I didn't know about the new form wizard code, I think I'll use that!
The auth issue happens with something as simple as this:
def view1(request):
return view2(request)
view1 = login_required(view1)
def view2(request):
return render_to_response(
'view2.html',
{},
At the site admin, when I click on the add user I get this error.
TemplateSyntaxError at /admin/auth/user/add/
Invalid block tag: 'include_admin_script'
Request Method: GET
Request URL:http://10.0.0.20:8000/admin/auth/user/add/
Exception Type: TemplateSyntaxError
Exception V
My bad, I was mislead by the low release number and dates. I just
tried it and the trunk version does indeed work with Django 1.0
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
Hi,
> I'm using newforms to upload a file in my project.
> I want to check the mime type of the uploaded file.
>
> Let's say my field name is "file", and check_uploaded_file() is a
> function that takes the content type and checks it.
>
> file = request.FILES['file']
> check_uploaded_file(file.co
I'm using django-tagging trunk version and it's ok. The last changes
were made 6 days ago, so it looks like it's still maintained.
Matic
On Thu, Sep 4, 2008 at 10:01 PM, Delta20 <[EMAIL PROTECTED]> wrote:
>
> Recent changes in Django have broken diango-tagging, and it looks like
> the django-tag
Recent changes in Django have broken diango-tagging, and it looks like
the django-tagging project isn't very actively maintained. Is there a
alternative module with equivalent functionality?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
I usually keep it like this (but note, that I've recently switched to git):
myproject.com
|-myproject
|--app1
|---templatetags
|---templates
|--app2
|--app3
|--templates
|--...
|-static
Some people tend to keep the actual apps in some other directory
(repository) and then symlink to the myprojec
Is there a way to determine whether the model´s save()-method
performs an insert or an update?
I want to do something like this:
create modelA_Instance --> create modelB_Instance.
So my plan is to do this in the save() from modelA.
--~--~-~--~~~---~--~~
You r
Hello !
I have a problem installing django. I followed the instructions but then :
# ./django-admin.py
Traceback (most recent call last):
File "./django-admin.py", line 2, in ?
from django.core import management
ImportError: No module named django.core
I am running SUSE Linux Enterpris
I like to symlink my 'static' folder to the DocumentRoot of apache, then
you can update your svn repo and the static files are serverd.
Gremmie wrote:
> On Sep 4, 10:10 am, Robert Dailey <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> First, let me start by explaining what my goals are:
>> - Have a
On Sep 4, 3:53 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 4, 2008 at 10:00 AM, simong <[EMAIL PROTECTED]> wrote:
> > It might have been in part a caching problem in Firefox: to clarify,
> > I'm testing this on my laptop running Ubuntu 8.04 using apache2 with
> > local name resol
Pavel, you should get in touch with the Debian package maintainers for
Django. You can find their contact information here:
http://packages.debian.org/etch/python-django.
-- Scott
On Thu, Sep 4, 2008 at 3:29 PM, pavel srb <[EMAIL PROTECTED]> wrote:
>
> hi all
> please, due to http://www.django
hi all
please, due to http://www.djangoproject.com/weblog/2008/sep/02/security/
i would like to know, when there will be security patch for debian
etch version
thank you
pavel srb
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
On Sep 4, 10:10 am, Robert Dailey <[EMAIL PROTECTED]> wrote:
> Hi,
>
> First, let me start by explaining what my goals are:
> - Have a django project & its apps in version control
> - Have all of the templates the apps will use in the same version
> control
> - Have all static content (images, css
>
> However, when I try to go to the admin I get either one of two errors
> (if I keep refreshing, the errors change between the two randomly.
>
> Either
> ---
> TypeError at /admin/
>
> dict objects are unhashable
It seems that one of your errors is in books/data/admin.py and not in
the adm
I was in beta, just checked my acct and it's already setup with the
Django Pro Containers, I better not get charged the $40/month :) I
really disliked the containers while they were in beta, they look
better now, but to me WebFaction is much better...
I'm considering this weekend doing it with a
Are now available according to their homepage:
http://mediatemple.net/webhosting/gs/django.html
Was anyone in the beta? I've not used them, so I'm wondering what the
experience was like.
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received th
fyi
I think I tracked this down.
I had this Admin def:
--
class BookVersionAdmin(admin.ModelAdmin):
fields = (
("Book", {'fields':('title', 'book', 'language', 'version',
'license', 'is_release', 'is_public')}),
("Contributors", {'fields':('authors', 'con
Take a look here:
http://www.djangoproject.com/documentation/shortcuts/#render-to-response
keith
On Sep 4, 2:44 pm, Cortland Klein <[EMAIL PROTECTED]> wrote:
> I have two templates, one called via a Generic View and one via my own
> View. They both extend a base.html view that has {{MEDIA_URL
Ronny,
Thank you so very much for your input; it has helped this newbie user
a great deal. The one outstanding problem I'm having here (and it's
the last field in my model...) is that I'd actually like to use a
FloatField to save my data, but it's failing validation for that type
of field ("enter
I have two templates, one called via a Generic View and one via my own
View. They both extend a base.html view that has {{MEDIA_URL}} in it.
When the generic view is hit, the base.html template gets it's value,
http://rtdev.apple.com/media/
, but when my own View hits MEDIA_URL blanks.
I t
I am working on migrating an Django app to 1.0.
I am running into problems getting my models registered with the
admin. I am following the info here:
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Mergednewforms-adminintotrunk
I have updated my main urls.py:
-
from dja
what kind of screencast software did you use?
I found the django screencast to be moving too quickly between steps,
not enough time to absorb the message in each step.
Thanks,
-B
On Sep 3, 2:07 pm, "Ian Ozsvald" <[EMAIL PROTECTED]> wrote:
> I've created a 57 second screencast showing 'Django
On Thu, 2008-09-04 at 06:25 -0700, Webchemist wrote:
> Hi all!
>
> Trying the fallowing:
>
> from django.db.models import signals
> print dir(signals.post_save)
> gives:
> ['__class__', '__delattr__', '__doc__', '__getattribute__',
> '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex
Thanks for all the feedback both on list and via email.
Our plan is to wait a day or two to see if there are any further
corrections required and then to release an updated edition early next
week. At this time we'll also produce a alternative version which will
be more suited for non-colour prin
I think your question is mostly about table design for relational databases.
The best design follows certain 'normalization' rules which ensure that
information is kept once and only once to ensure integrity.
One table per item is certainly the wrong approach, as it will mean that you
constantly h
Django 0.96 / mySQL / Apache2 / Ubuntu 8.04
I have created a "wizard" for data input. Rather than have one huge
form I have spread it out over a number of views/templates. After the
user submits data and it has been validated, each view places the
"new_data" into the request.session and redirects
I am using Basic Blog from the Django-Basic-Apps released by Nathan
Borror if that helps.
On Sep 4, 9:44 am, unklbeemer <[EMAIL PROTECTED]> wrote:
> I am wanting to show all blog entries written by certain authors..how
> would I go about doing this in my templates.
>
> In my Blog model I have an
On Thu, Sep 4, 2008 at 12:52 PM, David <[EMAIL PROTECTED]> wrote:
>
> In the admin, I just get a trace of errors yayks!
>
>
What level of Django are you running? Code was added to admin fairly
recently to properly check unique constraints:
http://code.djangoproject.com/ticket/8209
If you ar
Thanks for your reply, I haven't described the tables (or how) as I am
still trying to rationalise the best approach. Perhaps if I describe
to you want I want to do you'll see the best approach.
Consider the case of a shop (for example) and items can be added to
the shop and their prices continua
Thanks! and i second David's request.
On Thu, Sep 4, 2008 at 8:09 AM, David Larlet <[EMAIL PROTECTED]> wrote:
>
>
> Le 4 sept. 08 à 12:20, Fraser Nevett a écrit :
> >
> > http://www.mercurytide.co.uk/whitepapers/django-cheat-sheet/
> >
> > We welcome any ideas for improvements, corrections, or an
In the admin, I just get a trace of errors yayks!
On Sep 3, 5:28 pm, [EMAIL PROTECTED] wrote:
> In the admin, or on the site in a view?
>
> On Sep 3, 12:12 pm, David <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > when setting (for example)
> > name = models.CharField('Name', max_length=50, unique
I like it. Thank you for enabling me to convert my friends to Django in one
minute!
On Thu, Sep 4, 2008 at 6:04 AM, Ian Ozsvald <[EMAIL PROTECTED]> wrote:
> I've amended yesterday's preview release to reflect the new v1 Django site,
> the finished 'Django in Under a Minute' screencast is availabl
Thank you very much for making our jobs fun again with this fantastic
framework!
On Thu, Sep 4, 2008 at 9:37 AM, Wes Winham <[EMAIL PROTECTED]> wrote:
>
> Thanks again for the huge amount of awesome that you guys have brought
> to web development.
>
> On Sep 3, 8:07 pm, "James Bennett" <[EMAIL PR
Thanks again for the huge amount of awesome that you guys have brought
to web development.
On Sep 3, 8:07 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> The Django team is pleased to announce the release of Django 1.0 this evening:
>
> Download:http://www.djangoproject.com/download/
> Release n
On Thu, Sep 4, 2008 at 11:41 AM, Genis Pujol Hamelink <[EMAIL PROTECTED]
> wrote:
> OK sorry about that...
>
> Traceback: http://dpaste.com/75912/
> models.py: http://dpaste.com/75913/
> gforms.py: http://dpaste.com/75914/
> views.py:http://dpaste.com/75915/
>
> After logging in the user is r
thanks that index worked, I must have overwritten the good one.
sorry for assuming.
On Sep 4, 11:06 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 4, 2008 at 11:31 AM, KillaBee <
>
> [EMAIL PROTECTED]> wrote:
>
> > I did not know it would post like that.
> > It seem like it is going
On Thu, Sep 4, 2008 at 11:31 AM, KillaBee <
[EMAIL PROTECTED]> wrote:
>
> I did not know it would post like that.
> It seem like it is going backwards, less instead of more things. This
> is one of the most important things to see all your Django apps.
> So, if there is no adminapplist in django,
> If your looking for an example to follow, the code for
> django.test.simple isn't too hard to tear apart and customize for your
> own purposes.
OK. Here's how I solved it:
from django.test.simple import *
from django.test.simple import run_tests as orig_run_tests
# my app is called 'classes'
OK sorry about that...
Traceback: http://dpaste.com/75912/
models.py: http://dpaste.com/75913/
gforms.py: http://dpaste.com/75914/
views.py:http://dpaste.com/75915/
After logging in the user is redirected to a page which basically is the
punts_form function defined in views.py.
regards,
Ge
I went on to the IRC channel and Magus- helped me solve the problem.
Centos has permissions on the user folder I had the SVN trunk in that
was set to 700. /home/username/django-trunk is where I symlinked
django from.
To solve this problem all I had to do was set the permissions to 711
and it
Problem solved there
http://groups.google.cz/group/pyisapie/browse_thread/thread/3f2f8d3fe14644a8/7c76332a571858ed?lnk=st&q=PyISAPIeRequest#7c76332a571858ed
On 4 Zář, 17:21, rasto <[EMAIL PROTECTED]> wrote:
> Hi all !
>
> I'm new in Django and start install Django 1.0 on IIS 6.0 via PyISAPIe
> 1
I did not know it would post like that.
It seem like it is going backwards, less instead of more things. This
is one of the most important things to see all your Django apps.
So, if there is no adminapplist in django, Do you know if some one
else has put to pieces back together, and made a simila
A couple of questions about forms.
If I have a model form for a model which has a ManyToMany Relationship
with itself, can filter the choices that will appear in the multiple
choice field that will be created
i.e. if I users can befriend each other, how can I remove from the
choices users who ar
On Thu, Sep 4, 2008 at 11:13 PM, Peter Bengtsson <[EMAIL PROTECTED]> wrote:
>
> From http://www.djangoproject.com/documentation/testing/
> "4. Looking for unit tests and doctests in the models.py and tests.py
> files in each installed application."
>
> Next to models.py I have forms.py which does
Hi all !
I'm new in Django and start install Django 1.0 on IIS 6.0 via PyISAPIe
1.0.4.
I stop on this :
AttributeError at
'PyISAPIeRequest' object has no attribute 'path_info'
Request Method: GET
Request URL:http://127.0.0.5
Exception Type: AttributeError
Exception Value:
'PyISAPIeRequest'
On Thu, Sep 4, 2008 at 10:46 AM, Genis Pujol Hamelink <[EMAIL PROTECTED]
> wrote:
> Hello,
>
> After upgrading from Django version 1.0-beta_1-SVN-unknown to the Django
> 1.0 stable, I am getting this error:
>
>
You get the error when you do?
> Exception Type: TypeError Exception Value:
>
>
>From http://www.djangoproject.com/documentation/testing/
"4. Looking for unit tests and doctests in the models.py and tests.py
files in each installed application."
Next to models.py I have forms.py which does exactly what the filename
suggests: it defines forms. I've put some doctests in these
Hi,
First, let me start by explaining what my goals are:
- Have a django project & its apps in version control
- Have all of the templates the apps will use in the same version
control
- Have all static content (images, css, etc) in the same version
control.
So far, this is the directory structu
Le 4 sept. 08 à 12:20, Fraser Nevett a écrit :
>
> http://www.mercurytide.co.uk/whitepapers/django-cheat-sheet/
>
> We welcome any ideas for improvements, corrections, or any other
> feedback.
Any chance to get a printable copy without colors, just a white
background?
My printer will thank you
Hi.
I'm using newforms to upload a file in my project.
I want to check the mime type of the uploaded file.
Let's say my field name is "file", and check_uploaded_file() is a
function that takes the content type and checks it.
file = request.FILES['file']
check_uploaded_file(file.content_type)
S
I am attempting to use modelform_sets and AFAIK I have implemented it
correctly. The problem is that the first time the form is submitted
without any data in the form fields, the is_valid() function validates
these fields as being valid and then stores empty values in the
database, even though my
I am wanting to show all blog entries written by certain authors..how
would I go about doing this in my templates.
In my Blog model I have an author variable.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
On Thu, Sep 4, 2008 at 10:00 AM, simong <[EMAIL PROTECTED]> wrote:
> It might have been in part a caching problem in Firefox: to clarify,
> I'm testing this on my laptop running Ubuntu 8.04 using apache2 with
> local name resolution using names against localhost, which is fairly
> non-standard but
Hello,
After upgrading from Django version 1.0-beta_1-SVN-unknown to the Django 1.0
stable, I am getting this error:
Exception Type: TypeError Exception Value:
'NoneType' object is not callable
Exception Location: /usr/lib/python2.5/site-packages/django/forms/models.py
in __init__, line 197
True but I wanted to organize my folder a bit because there's not just
one photo per pet, there could be quite a lot more than one photo per
pet. First, I'd rather not have a million _ at the end of a file
because everyone named their file cute1.jpg. Anyway, I got it to work,
code below. (It's not
On Sep 4, 12:36 pm, [EMAIL PROTECTED] wrote:
> Guys,
>
> I have the following model :
>
> from pypo.contracts.models import job_id
> from pypo.suppliers.models import Company
>
> ##Create your models here
>
> class ponum(models.Model):
> contract = models.ForeignKey(job_id)
> sup
On Thu, Sep 4, 2008 at 10:30 AM, KillaBee <
[EMAIL PROTECTED]> wrote:
>
> Hello Django world, I am having a problem running the updated
> adminapplist version. The error is 'adminapplist' is not a valid tag
> library: Could not load template library from
> django.templatetags.adminapplist, No modu
1 - 100 of 145 matches
Mail list logo