Re: Serving static content with development server?

2007-05-08 Thread James Bennett
On 5/8/07, gsmith <[EMAIL PROTECTED]> wrote: > by using the following html ' However, this contains the string 'c:/django/site_media/image.jpg'. Use The "get_FIELDNAME_url" method will return the URL of the file relative to MEDIA_ROOT, while just printing out the field value will return the

Re: \d and \w regular expressions?

2007-05-08 Thread James Bennett
> '[-\w-]' is character class combining '\w' and a hyphen Had a typo there; should be '[-\w]' -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: \d and \w regular expressions?

2007-05-08 Thread James Bennett
On 5/8/07, gsmith <[EMAIL PROTECTED]> wrote: > I don't understand what [\w-]{1,100} and [\w-]+ are doing. Can you > please explain? Your best bet is to consult a good reference on regular expressions; they're among the topics that "every programmer needs to understand". Jeffrey Friedl's book

Re: \d and \w regular expressions?

2007-05-08 Thread gsmith
limodou, I don't understand what [\w-]{1,100} and [\w-]+ are doing. Can you please explain? Thank You On May 8, 9:55 pm, limodou <[EMAIL PROTECTED]> wrote: > On 5/9/07, gsmith <[EMAIL PROTECTED]> wrote: > > > > > > > Is there any documentation of what these do? I'm assuming that this > > is a

Serving static content with development server?

2007-05-08 Thread gsmith
I have installed the Django Development Server on my computer. I am trying to add some css and images to my project. I'm having problems getting my pictures to upload correctly. Below is the details of some of my files. setting.py MEDIA_ROOT = '' / urls.py

Re: \d and \w regular expressions?

2007-05-08 Thread limodou
On 5/9/07, gsmith <[EMAIL PROTECTED]> wrote: > > Is there any documentation of what these do? I'm assuming that this > is a Python regular expression? > > The reason I ask is becuase I have a line in my urls.py file that > looks like this > > (r'^csi/rso/(news|members)/(\w{1,100})/$', >

\d and \w regular expressions?

2007-05-08 Thread gsmith
Is there any documentation of what these do? I'm assuming that this is a Python regular expression? The reason I ask is becuase I have a line in my urls.py file that looks like this (r'^csi/rso/(news|members)/(\w{1,100})/$', 'mysite.rso.views_rso.showtitlepage'), This works fine when the

Re: Retrieving 'attributes' of a product for generic views

2007-05-08 Thread James Bennett
On 5/8/07, James Bennett <[EMAIL PROTECTED]> wrote: > 2. If that doesn't work, try to access it as a normal Python attribute. > 3. If that doesn't work, try to call it: foo.bar(). (and to be completely honest, it actually does a 'callable' check on the attribute before trying to call it, so if

Re: Retrieving 'attributes' of a product for generic views

2007-05-08 Thread James Bennett
On 5/8/07, Adam <[EMAIL PROTECTED]> wrote: > keeping logic out of templates. I'm fine with that, so my next > thought was to build a dictionary of every attribute of a product and > reference that, but {{ object.attributes["brightness"] }} gets me a > "Could not parse the remainder" error.

Re: Retrieving 'attributes' of a product for generic views

2007-05-08 Thread Chris Moffitt
> > I've got an ecommerce system I'm working on. I have a product model, I'm not sure if I can answer this specific question but you might want to check out Satchmo - http://www.satchmoproject.com It is an eCommerce solution written in Django - at least take a look and see if it meets your

How can I get the admin interface to not ignore newlines in a text field?

2007-05-08 Thread Michael Lake
Hi all I have a content field which has newlines in it. When I do a select from the database of that field I get the output like this: line 1 line 2 But when I view this in the admin interface I get line 1 line 2 How can I get the admin interface to not ignore newlines? Mike

Re: Feed Displaying Odd Dates

2007-05-08 Thread Bryan Veloso
Thanks for the help Malcom, > The feed framework looks at the attribute called "pubdate" to determine > the publication date for items. Your attribute is called "pub_date", so > ti isn't being examined. Simplest solution here is to add a pubdate() > method or property to your model that returns

Re: Issue with database Postgresql :(

2007-05-08 Thread Kenneth Gonsalves
On 08-May-07, at 10:43 PM, Gerard M wrote: > I dont know if something like this exists in postgresql, or if there > is something else I can do or I should be doing, thanks for your help, > and your time for reading this post. when creating the database, do createdb dbname -E=unicode --

Re: override get_next_by_FOO() / get_previous_by_FOO()

2007-05-08 Thread Malcolm Tredinnick
On Mon, 2007-05-07 at 22:32 +, roderikk wrote: > Hi all, > > I have recently started with django and have been able to do good work > with the excellent documentation. Thank you. > > However, now I am a little baffled. I have created a gallery app. The > model exists of a Gallery and Photo

Re: Why are my FloatFields strings ?

2007-05-08 Thread Malcolm Tredinnick
On Tue, 2007-05-08 at 17:44 -0400, Andy Dustman wrote: > On 5/2/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > I'm going to work on that problem (putting in decimal support) this week > > sometime. Maybe today or tomorrow. It's starting to annoy me, seeing all > > the decimal-reated

Re: Issue with database Postgresql :(

2007-05-08 Thread Malcolm Tredinnick
On Tue, 2007-05-08 at 10:13 -0700, Gerard M wrote: > Hello dear django community, I'm having a bad time with an issue that > I haven't been able to solve with my database, the problem is this: > Whenever I try to save a word containing "special" characters in it > (for example áéíóú) I get the

Re: Weird get_or_create error

2007-05-08 Thread Brandon Low
Still not sure what's going on myself -- I've had one more occurence of the error, and have now confirmed that autocommit is on in the production application (by printing the result of select @@autocommit). It sounds quite possible that it's the immediate foreign key constraint check that's

Re: Curious error with Session Variables

2007-05-08 Thread John DeRosa
Perhaps check your firewall, anti-hijack, anti-trojan, etc. software. You may have a cookie guard enabled. For example, Webroot's Spy Sweeper has a set of "shields" for web browsers, and they include the blocking of certain tracking cookies and some IE security 'protection'. Perhaps your

Re: Why are my FloatFields strings ?

2007-05-08 Thread Benjamin Slavin
On 5/8/07, Andy Dustman <[EMAIL PROTECTED]> wrote: > Perhaps Django needs a > DecimalField (or NumericField) for fixed-point values? (You might be > working on this; haven't searched bugs.) This has been discussed before and, so far as I can tell, is an active topic of discussion ('Design

Re: problems with spawning new subprocesses with development server

2007-05-08 Thread [EMAIL PROTECTED]
Ok, it seems that the problem is not exactly what it seemed in the beginning. Namely: the process is created and works fine, _but_ the django still hangs on returning the http response. In other words (OS = Linux): views.py: def test(request): FNULL = open('/dev/null', 'w')

Re: Issue with database Postgresql :(

2007-05-08 Thread Joseph Heck
Using django syncdb is fine - just make sure the database itself is set up with utf-8 encoding. I used that very command just prior to running "django-admin.py syncdb" You might check the archives of this group for similiar topics - I recall seeing discussion on this previously, and I think they

Users creating subdomains with a django project

2007-05-08 Thread Michael
Sorry for bringing up an old topi, but there seem to be a few suggestions around for allowing users to create their own subdomains with a django project, but no real recommendations (maybe that's for a reason?) The main issue that people bring up is that they don't need/want to create a separate

DB scaling

2007-05-08 Thread raminf
Hi folks, There were some discussions on this list a while back on back-end database scaling and a support ticket for multi-database connections (http://code.djangoproject.com/ticket/1142). There appeared to be a lot of ideas but no definitive conclusions. The deployment chapter in the

Re: override get_next_by_FOO() / get_previous_by_FOO()

2007-05-08 Thread roderikk
Well, sorry to be replying to myself but I have tried to solve it in the following way: I implemented these functions/properties in the model: def _get_next_item_ID(self): photo_list = [x for x in self.gallery.photo_set.all()] ind = photo_list.index(self)+1 return

Re: Weird get_or_create error

2007-05-08 Thread Andy Dustman
Not sure what is happening there. Django is not setting autocommit, and MySQLdb disables autocommit by default. Have you actually verified that autocommit is on when running your application? It may also be due to the fact that MySQL (5.0 and earlier at least) does not defer foreign key checks

Re: Why are my FloatFields strings ?

2007-05-08 Thread Andy Dustman
On 5/2/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > I'm going to work on that problem (putting in decimal support) this week > sometime. Maybe today or tomorrow. It's starting to annoy me, seeing all > the decimal-reated tickets in Trac, so after I knock off all the email > ones (today),

Re: problems with spawning new subprocesses with development server

2007-05-08 Thread Austin Bingham
Sorry for kinda jumping in the middle here, but have you tried fork/exec? It's odd that spawn with NOWAIT isn't giving you what you want, and I'm curious as to whether you can provide more details. In any event, though, fork/exec is a somewhat more verbose way of getting basically the same

Re: Issue with database Postgresql :(

2007-05-08 Thread Joseph Heck
You need to deal with whatever encoding the file is in. But you're also running out of my area of knowledge in regards to text encodings. -joe On 5/8/07, Gerard M <[EMAIL PROTECTED]> wrote: > > Thanks for all your help guys, but I'm facing another little thing > here, if I'm getting the word

Re: problems with spawning new subprocesses with development server

2007-05-08 Thread Joseph Heck
Sounds cool to me. If you come up with a solution thats lightweight, I'd be very interested to know what you used and what it took to set up. -joe On 5/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Ok, in your case I would (and actually am) rather use some kind of > batching system

Retrieving 'attributes' of a product for generic views

2007-05-08 Thread Adam
I've got an ecommerce system I'm working on. I have a product model, and a productattribute model tied to each product for flexibility - such a wide variety of products can/will be sold that it wouldn't be possible or practical to put them all on the product model. Where this becomes a

Re: Issue with database Postgresql :(

2007-05-08 Thread Gerard M
Thanks for all your help guys, but I'm facing another little thing here, if I'm getting the word from a file (this means I'm not typing the word directly into the code), for example: for line in textf: tempwords = line.split(None) for c in range(len(tempwords)):

Re: Curious error with Session Variables

2007-05-08 Thread Diego pylorca
m I deployed my site, and in the admin when i try to login i get this message: "Looks like your browser isn't configured to accept cookies. Please enable cookies, reload this page, and try again." the cookies is enabled. my server is a debian etch stable (intalled modpython apache2 and

Re: Curious error with Session Variables

2007-05-08 Thread Diego pylorca
For more info about me config: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch3 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at *** Port 80 and my vhost: ServerName ***.net ServerAlias www..net CustomLog /var/log/apache2/***/access.log combined

Admin, edit_inline, and saving

2007-05-08 Thread jules
I am having a problem saving in Admin. I have two models, Picture and Post. (One to Many) The picture model has a foreign_key (post) which is using edit_inline. When I add a post in Admin, the 4 picture field show up like they are suppose to. Then, I hit the save buttton, and none of the

Re: Issue with database Postgresql :(

2007-05-08 Thread Joseph Heck
You'd want to write that as w = u'ataché' to make sure python knew you were pushing out a unicode string, but an ASCII string. -joe On 5/8/07, Gerard M <[EMAIL PROTECTED]> wrote: > > Thanks for your help Rafael, but I got into another trouble trying to > encode my string like this; > I have

Re: Issue with database Postgresql :(

2007-05-08 Thread Gerard M
Thanks for your help Rafael, but I got into another trouble trying to encode my string like this; I have the unicode string in a variable lets say w = ataché, how can I tell python/django that the string "w" is a unicode string and how can I make the encoding, because If I type w.encode('utf-8'),

Re: How to change the size of input field from Django

2007-05-08 Thread jordi.f
Hi L.B., I copy to 'myproject/templates/admin/base_site.html' the template from the Django source tree: 'django/contrib/admin/templates/admin/ base_site.html', so I can overwrite it without patching Django. Then I add something like {% block extrastyle %} textarea#id_Description {

Re: problems with spawning new subprocesses with development server

2007-05-08 Thread Rafael \"SDM\" Sierra
On 5/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > What about Windows? Linux is for production, but development is on > Windows machines. os.fork is platform independent, so it must work Maybe you'll need to implement SIGCHLD handler to avoid "s" process -- Rafael "SDM" Sierra

Re: Issue with database Postgresql :(

2007-05-08 Thread Rafael \"SDM\" Sierra
On 5/8/07, Gerard M <[EMAIL PROTECTED]> wrote: > > Well I did not create the table myself on postgreSQL, I used django > manage.py syncdb and that created my database from my models, and I > have to build it like that because thats the way I access to the > tables too, so I need to find a way to

Re: Issue with database Postgresql :(

2007-05-08 Thread Gerard M
Well I did not create the table myself on postgreSQL, I used django manage.py syncdb and that created my database from my models, and I have to build it like that because thats the way I access to the tables too, so I need to find a way to alter them or to set a collation or to change the

Re: problems with spawning new subprocesses with development server

2007-05-08 Thread [EMAIL PROTECTED]
What about Windows? Linux is for production, but development is on Windows machines. On May 8, 8:20 pm, Mikhail Gusarov <[EMAIL PROTECTED]> wrote: > Twas brillig at 17:17:58 08.05.2007 UTC+00 when [EMAIL PROTECTED] did gyre > and gimble: > > i> And it seems really strange that it's not a

Re: Using Django Models outside of Django

2007-05-08 Thread Joseph Heck
Generally outside and prior to any thread initiation should be fine. -joe On 5/8/07, johnny <[EMAIL PROTECTED]> wrote: > > Since I have my code in threaded manner, do I have to put the > following code inside threaded function or outside? > > from os import environ >

Re: Issue with database Postgresql :(

2007-05-08 Thread Joseph Heck
when you created your database, did you set the encoding to UTF-8? When we set up our database, we used: createdb -E='utf-8' -Upostuser databasename I'm not familiar enough to Postgres to know if you can convert the encoding of a database after it's been created. -joe On 5/8/07, Gerard M

Re: Using Django Models outside of Django

2007-05-08 Thread johnny
Since I have my code in threaded manner, do I have to put the following code inside threaded function or outside? from os import environ environ['DJANGO_SETTINGS_MODULE'] = 'settings' from settings import * --~--~-~--~~~---~--~~ You received this message

Re: problems with spawning new subprocesses with development server

2007-05-08 Thread Mikhail Gusarov
Twas brillig at 17:17:58 08.05.2007 UTC+00 when [EMAIL PROTECTED] did gyre and gimble: i> And it seems really strange that it's not a trivial task just to spawn a i> child process and continue the parent. I have a feeling that it is still i> perfectly doable. os.fork + os.execve in child

Re: problems with spawning new subprocesses with development server

2007-05-08 Thread [EMAIL PROTECTED]
Ok, in your case I would (and actually am) rather use some kind of batching system (torque in my case). But the problem is that I would very much have a version of the system, when only one machine is available that would do all the work on the background with perhaps some lower priority. And it

Issue with database Postgresql :(

2007-05-08 Thread Gerard M
Hello dear django community, I'm having a bad time with an issue that I haven't been able to solve with my database, the problem is this: Whenever I try to save a word containing "special" characters in it (for example áéíóú) I get the following django error: "invalid byte sequence for encoding

Re: problems with spawning new subprocesses with development server

2007-05-08 Thread Joseph Heck
For a light (i.e. short) duration process that you want results from to return to the user, it's fairly straightforward. Here's some code we're using to report our current code revision in an admin dashboard: def get_code_revision(): import os x = os.popen("/usr/bin/svnversion

Re: Translation of class names

2007-05-08 Thread Pashka R.
2007/5/7, Konstantin Pavlovsky <[EMAIL PROTECTED]>: > > up! > nobody used i18n things? [offtopic] Может создать группу ru_django? [/offtopic] -- //wbr Pashka R. <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Admin interface, list_filter and relation search

2007-05-08 Thread Michel Thadeu Sabchuk
Hi guys! I have the following models: ... from django.contrib.sites.models import Site class Type(models.Model): sites = models.ManyToManyField(Site) class Product(models.Model): type = models.ForeignKey(Type) data = models.CharField() class Admin: list_filter =

Re: Custom Widget

2007-05-08 Thread dballanc
from util import flatatt My guess is that you really mean: from django.newforms.util import flatatt It works for the django widgets.py file because they are in the same folder. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

problems with spawning new subprocesses with development server

2007-05-08 Thread [EMAIL PROTECTED]
Hi I've spent quite a lot of time trying to simply spawn a new process (by spawn I mean os.P_NOWAIT). The problem is that I cannot manage to get django not to halt after the execution of the process spawning command (the idea is that in views I want to start a background process that is quite

Re: modifying shebang reference in django 0.95.1

2007-05-08 Thread Mark Phillips
On May 8, 2007, at 8:29 AM, Jens Diemer wrote: > You use fastCGI... So you have a "init" WSGI Handler file? Only the > shebang in this file is IMHO important. Please forgive my ignorance. I appreciate your assistance. I found django/core/handlers/wsgi.py and in the handlers directory there

Re: How to specify name for ForeignKey field?

2007-05-08 Thread Suraj
> > Yes: use the db_column attribute on your ForeignKey definition. For example: > >myref = models.ForeignKey(OtherModel, db_column='foo') > > will use 'foo', rather than 'myref_id' as the column name Thank you very much. This is exactly what I was looking for. > > If you're feeling

Re: modifying shebang reference in django 0.95.1

2007-05-08 Thread Jens Diemer
Mark Phillips schrieb: > Thank you. I am not familiar with the "init/index" python script. Can > you elaborate? You use fastCGI... So you have a "init" WSGI Handler file? Only the shebang in this file is IMHO important. -- Mfg. Jens Diemer A django powered CMS:

Fwd: Rain Forest Animals ! !

2007-05-08 Thread Kooooool forwords
[image: African-Lion-Cub * 1600 x 1200 * (282KB)] [image: African-Fish-Eagle * 960 x 660 * (143KB)]

Re: modifying shebang reference in django 0.95.1

2007-05-08 Thread Mark Phillips
On May 8, 2007, at 7:55 AM, Jens Diemer wrote: > You must only change the shebang in your "init/index" python > script. The > Handler file. Thank you. I am not familiar with the "init/index" python script. Can you elaborate? - Mark --~--~-~--~~~---~--~~

Vote for Baby No 1

2007-05-08 Thread h2so4
Vote for Baby No 1, Russell Low at: http://www.infoguide.com.my/votestreet/votecaster/babycontest.php?campaign_id=32 Thank you for your support --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: modifying shebang reference in django 0.95.1

2007-05-08 Thread Jens Diemer
Mark Phillips schrieb: > django/bin/compile-messages.py:1: #!/usr/bin/env python > django/bin/django-admin.py:1: #!/usr/bin/env python > django/bin/make-messages.py:1: #!/usr/bin/env python > django/bin/unique-messages.py:1: #!/usr/bin/env python > django/conf/project_template/manage.py:1:

modifying shebang reference in django 0.95.1

2007-05-08 Thread Mark Phillips
I am still trying to get django to present a public page from OS X via fast cgi. The current issue revolves around os x 10.4.9 using python 2. 3 as the stock installation, while django desires python 2.4. Well, at least in the version I have installed. That is, fast cgi is invoked using

Custom Widget

2007-05-08 Thread Thomas Rabaix
Hello I am trying to create a new Input Widget called 'MapInput'. However the line : "from util import flatatt" from my widgets.py seems to break something. My code comes from the newforms/widgets.py file. If I comment the lines relatives to the flatatt, my widget works fine. Do you ave any

Discover the potential in you

2007-05-08 Thread Shortcut Weebly
ShortIntroduction Well, cut short, Shortcut takes you to those ultimate, hand picked, genuine sites that add bucks to your pocket, without any strings attached! What you will find here:

Re: Multiple Profiles

2007-05-08 Thread Jeremy Dunck
On 5/8/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > I would recommend you take a look at lost-theories.com source code. One anti > pattern that django docs seems to recommend is use > django.contrib.auth.models.User as your main user model ... > and user.get_profile().friends.all() sounds

Re: Flex + django

2007-05-08 Thread [EMAIL PROTECTED]
DjangoAMF is the way to go, we're using it right now for a project and it's performing very well. On May 7, 10:32 am, Don Arbow <[EMAIL PROTECTED]> wrote: > I've dabbled in Flex with Django on the backend, using JSON as the > transport mechanism. It's not that difficult, you just skip all the >

CAMERA AND THE TERRORIST!!!!

2007-05-08 Thread jim
Continue reading here @ http://unique-gadgets.blogspot.com --~--~-~--~~~---~--~~ 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

Re: delete obsolete content type entries...

2007-05-08 Thread Jens Diemer
Here a stand alone cleanup script, for discussion: http://paste.pocoo.org/show/1482/ btw. you should have the same problem, if you test a separate django app. And "deinstall" it later. If you use "django.contrib.auth" and "django.contrib.contenttypes" there must be exist obsolete

Re: Dev Server - Being Denied Admin Media

2007-05-08 Thread Aidas Bendoraitis
Bryan, If this happens when using django integrated dev server, then setting ADMIN_MEDIA_PREFIX to something different than MEDIA_URL should help you, for example: "admin-media". I consider this a bug of Django, which perhaps appear only under some specific conditions. Aidas Bendoraitis [aka

NOOB - How to extend Admin templates

2007-05-08 Thread Bruno Tikami
Hello guys! I'm quite new to Django and I'd like some help with it's templates. How can I use the admin templates to show my own data? I mean, If I have a FK field, the admin view won't show the "select_related" fields from the foreign class. How can I create my own view and displays it through

Re: Extend a QuerySet

2007-05-08 Thread Tim Chase
>>> I want to search some entrys in a database. These entrys have a name >>> and a discription. At first I want to find all entrys whose names >>> start with the search query, at second i want to find all entrys whose >>> name contains the search query and then I want to have the entrys with >>>

Re: Extend a QuerySet

2007-05-08 Thread Cornelius Bolten
christian, how about building a query like this: WHEREname like 'query%' OR ( name like '%query%' AND description like '%query%' ) this should give you the proper records. as i'm pretty new to django, i can't tell how to accomplish this with the django db-api...

Re: Extend a QuerySet

2007-05-08 Thread Malcolm Tredinnick
On Tue, 2007-05-08 at 08:07 +, Christian Schmidt wrote: > Hi, > > I want to search some entrys in a database. These entrys have a name > and a discription. At first I want to find all entrys whose names > start with the search query, at second i want to find all entrys whose > name contains

Re: How to specify name for ForeignKey field?

2007-05-08 Thread Malcolm Tredinnick
On Tue, 2007-05-08 at 14:32 +0800, Russell Keith-Magee wrote: > On 5/8/07, Suraj <[EMAIL PROTECTED]> wrote: [...] > > Will same problem occur for ManyToMany fields? I have not started > > creating models of those tables yet. But the database has it's own > > naming convention for relationship

Re: Newform and File Upload problem

2007-05-08 Thread guillaume
Thanks a lot! It works for FileFiels as well! Yours, Guillaume. Le mardi 08 mai 2007 � 00:20 +, scadink a �crit : > File uploads haven't been completed in newforms. It's not a great > situation, but that's what happens with software that's currently in > development. > > What I did in my

Re: DB error when sorting by a column in the generated admin

2007-05-08 Thread Alexander Pugachev
Looks like your models "know" about prefixes in table names. Class reseller should work with table "reseller", but it works with table "fuel_reseller". I do not know how you made that (interesting to know), but why not to call models Reseller and FuelRelease and point them in Meta clases that

Extend a QuerySet

2007-05-08 Thread Christian Schmidt
Hi, I want to search some entrys in a database. These entrys have a name and a discription. At first I want to find all entrys whose names start with the search query, at second i want to find all entrys whose name contains the search query and then I want to have the entrys with the query in

Re: Status of the trunk? Ok to use it?

2007-05-08 Thread Russell Keith-Magee
On 5/8/07, Loïc d'Anterroches <[EMAIL PROTECTED]> wrote: > > Hello, > > As of the 6th of April I read that it was maybe not that good to use > the trunk as under heavy changes[1]. But looking at the incompatible > changes page[2] it looks like it is not that heavy (I have already a > small app

Status of the trunk? Ok to use it?

2007-05-08 Thread Loïc d'Anterroches
Hello, As of the 6th of April I read that it was maybe not that good to use the trunk as under heavy changes[1]. But looking at the incompatible changes page[2] it looks like it is not that heavy (I have already a small app running using the newforms) for the moment. I just wonder if a big storm

Use django's models without running web server

2007-05-08 Thread hoamon
Because i can't find related post here, so i post this example. maybe someone else need. Some times, you just want to use the useful models of django without thinking any sql statement. Maybe you want to run a script to know which user's birthday in your database is today, this little job should

Re: How to specify name for ForeignKey field?

2007-05-08 Thread Russell Keith-Magee
On 5/8/07, Suraj <[EMAIL PROTECTED]> wrote: > > Hi, > I am trying to use a legacy database in Django. The application > has read only access to this database. This database contains > ForeignKey fields which don't fit Django's format of _id. > Is there any way to specify the ForeignKey fields

Re: How to specify name for ForeignKey field?

2007-05-08 Thread Kenneth Gonsalves
On 08-May-07, at 11:45 AM, Suraj wrote: >I am trying to use a legacy database in Django. The application > has read only access to this database. This database contains > ForeignKey fields which don't fit Django's format of _id. > Is there any way to specify the ForeignKey fields name? if

How to specify name for ForeignKey field?

2007-05-08 Thread Suraj
Hi, I am trying to use a legacy database in Django. The application has read only access to this database. This database contains ForeignKey fields which don't fit Django's format of _id. Is there any way to specify the ForeignKey fields name? Will same problem occur for ManyToMany