Re: Performance for django for years

2007-09-10 Thread Greg Donald
On Sun, 9 Sep 2007, Xan wrote: > Well, first of all, thank you for django. I'm not programmer and I > just wanted to code some web app easier as I can do. I tried rails but > there is no free documentation (almost all doc are books and books) I wasn't charged anything before being allowed to

Newbie (Before I get started)

2007-09-10 Thread tmb
I've spent a few days Googling and searching this group for some guidance on a few newbie issues. I apologize in advance if these things have already been covered to death. I am basically trying to decide where to put my focus in the next project or two: Rails or Django. Haha, yeah I know... :)

Re: mod_python, multiple django-sites, memory usage

2007-09-10 Thread Damodhar
hi I,am new one to django, I am very intrst to learn Django, so i install python latest verson, and try to install daango latest verson but it want;s's to configure .. mod_python module , can u help me am using WINDOWS XP SYSTEM now am working in PHP MYSQL USING XAMPLITE (APACHE +PHP + MYSQL

Can u help me how to configure MOD_PYTHON am new one to django

2007-09-10 Thread Damodhar
hi I,am new one to django, I am very intrst to learn Django, so i install python latest verson, and try to install daango latest verson but it want;s's to configure .. mod_python module , can u help me am using WINDOWS XP SYSTEM now am working in PHP MYSQL USING XAMPLITE (APACHE +PHP + MYSQL

Re: choices/ and getting rid of the dashes?

2007-09-10 Thread Ryan
Use initial when calling your form class. formClass = forms.form_for_model(Person) form = formClass(initial={'gender': 'm'}) On Sep 6, 4:31 pm, Mark Green <[EMAIL PROTECTED]> wrote: > Hi all, > > This is my model: > > class Person(models.Model): > GENDER_CHOICES = ( > ( 'm', 'Male'

Re: php fsockopen equivalent in Django

2007-09-10 Thread Brett Parker
On Mon, Sep 10, 2007 at 12:13:58AM -0500, James Bennett wrote: > > On 9/9/07, Arnold Chen <[EMAIL PROTECTED]> wrote: > > I am writing an application that require "silent" post of data to a > > specific URL. I know that is a function fsockopen in PHP which can > > achieve this, and i am looking

FileInput widget and FileField

2007-09-10 Thread Ronald
Hi there, I need a little bit of help here. I want to let user to import a csv file which will be parsed into the database. I am thinking of using FileField to let the user choose the file (with the browse button) but I am having some difficulty parsing it. I was thinking of using csv library

Re: FileInput widget and FileField

2007-09-10 Thread Alex Koshelev
Read the docs: http://www.djangoproject.com/documentation/db-api/#get-foo-filename On 10 сент, 11:19, Ronald <[EMAIL PROTECTED]> wrote: > Hi there, > > I need a little bit of help here. > > I want to let user to import a csv file which will be parsed into the > database. > I am thinking of using

Re: Newbie (Before I get started)

2007-09-10 Thread MikeHowarth
I've been working in Django for all of about 4 weeks and I'm absolutely loving it. Within that time I've written my first project, something which I probably would never have acheived in another language (I'd still be stuck reading the book!) To give you a little on my background, I've

Re: FileInput widget and FileField

2007-09-10 Thread Ronald
I completely forgot about that. However, my problem still persists cause I am not using Models.FileField but Forms.FileField. Your solution will work for models but I am using forms and I m not sure if instance of form has similar method such as get_FOO_filename. Sorry i wasnt really clear

Re: entering sane dates in admin

2007-09-10 Thread MikeHowarth
Sure have a look at the DATE_FORMAT within settings. I think that should do what you're after. On Sep 8, 8:29 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > hi, > is there any quick way of entering sane dates in admin - that is d/m/ > y and not y/m/d? > -- > > regards >

Creating an archive navigation for date_based.archive_month

2007-09-10 Thread Max Romantschuk
I'm in the process of porting my site to Django, and I'm wondering how to best implement a monthly archive navigation like in Django's weblog's sidebar: http://www.djangoproject.com/weblog/ I'm using generic views. I basically need the information provided in date_based.archive_year: the months

Apache serving media files

2007-09-10 Thread Rufman
im having problems serving media files in apache together with django. Somehow Apache can't get the admin media files or my own (located at / projectroot/media) for that matter. my apache conf file: ServerName www.bridgeco.com DocumentRoot D:/projects/pyOrganize/src/pyOrganize

Learn how I make money using the internet

2007-09-10 Thread International Marketing
Check out my new website about my efforts to make money on the internet. Let's make some money together. Click http://www.yuwie.com/yuwie.asp?r=59398 make some extra money. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Watch The New Styles

2007-09-10 Thread Sumeera
Hi Friends, See and upload new mehndi styles here http://mehndi123.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

Re: Can u help me how to configure MOD_PYTHON am new one to django

2007-09-10 Thread Jon Atkinson
Damodhar, It seems your problem isn't with Django, but with the configuration of mod_python, and so I think your question would be better directed to the mod_python mailing list[1], rather than here. Good luck, --Jon [1] http://mailman.modpython.org/mailman/listinfo/mod_python On 9/10/07,

Re: php fsockopen equivalent in Django

2007-09-10 Thread James Bennett
On 9/10/07, Brett Parker <[EMAIL PROTECTED]> wrote: > As it looked like he wanted to talk HTTP, maybe it'd be better to point > to: > http://docs.python.org/lib/module-urllib.html > http://docs.python.org/lib/module-urllib2.html > > Which let you do GET and POST really quite

Re: Django deployment à lá Capistrano

2007-09-10 Thread Jon Atkinson
> "automating django's deployment tasks" sounds like a good start for me. A rough list of what I consider those tasks to be: 0) Checking in the local source changes if they have not already been checked in (optional). 1) Logging into the deployment target. 2) Checking out the latest source. 3)

When 1.0 ?

2007-09-10 Thread est
Hi I am a new web developer in django. Could anyone tell me when will django go to 1.0? Will django support py3k? Is django worth learning compared with other web frameworks like turbogears, RoR? --~--~-~--~~~---~--~~ You received this message because you are

Re: how to validate not blank field?

2007-09-10 Thread Nis Jørgensen
[EMAIL PROTECTED] skrev: > i used this: def isBlank(field,all_data): if field_data is None: > raise ValidattionError(u'Cannot be Blank.') > > it not work for me. It seems you are being bitten by the behavior described thus in the documentation: """ After a form has been submitted, Django

Time Zone Errors

2007-09-10 Thread [EMAIL PROTECTED]
Hello Django Users, I'm building a large web application with django but running into some trouble migrating the application to a server. Currently the app is running perfectly on my home computer. The app consists out of multiple forms where users can submit data the problem that occured while

Re: Login issues

2007-09-10 Thread MikeHowarth
Anyone? On Sep 9, 5:47 pm, MikeHowarth <[EMAIL PROTECTED]> wrote: > Hi guys > > Was wondering if anyone knew of any bugs within the user > authentication system associated to setting the backend attribute? > > Basically looking at the traceback the user object expects a attribute > 'backend' to

Extra_context for 404 pages?

2007-09-10 Thread Ryan K
Hi. I have certain settings about the locations of static files (like CSS files) that I need to pass to the 404 page so it can render properly. How do I go about doing this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: FileInput widget and FileField

2007-09-10 Thread Dushyant Sharma
here is model class Thing(models.Model): PID=models.ForeignKey(Property) name = models.CharField(blank=False, null=False, maxlength=30) photo = models.ImageField(upload_to='images/things/', blank=True, null=True) the form class ThingForm(forms.Form): name =

Re: Time Zone Errors

2007-09-10 Thread James Bennett
On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > the problem that occured while putting the same code on the server is > a Time Zone Error. No, it is not. Read the error message carefully: PostgreSQL is not saying the SET TIME ZONE was problematic, it is saying "an error occurred in

Re: When 1.0 ?

2007-09-10 Thread James Bennett
On 9/10/07, est <[EMAIL PROTECTED]> wrote: > Hi I am a new web developer in django. Could anyone tell me when will > django go to 1.0? Search the archives of this mailing list for your answer. > Will django support py3k? Considering that Python 3.0 isn't due to be released until late next

Re: mod_python, multiple django-sites, memory usage

2007-09-10 Thread Atilla
If you are considering running mod_fcgi systems, take a loot at mod_wsgi first. It's quite stable already, the setup is not any more difficult than mod_fcgi and it's a lot more easy to configure the finer details. Additionally, some simplistic tests show quite good performance, although that's

{% url %} for syndication feeds

2007-09-10 Thread omat
Hi, Considering the following example in the documentation: http://www.djangoproject.com/documentation/syndication_feeds/#a-complex-example and a url pattern like this # ... (r'^feeds/(?P.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}, name='feed_index'), # ... How can I

Re: FileInput widget and FileField

2007-09-10 Thread Russell Keith-Magee
On 9/10/07, Dushyant Sharma <[EMAIL PROTECTED]> wrote: > > save data > new_data = request.POST.copy() # these two lines > are > new_data.update(request.FILES) # very important These two lines are no longer important. An alternate approach to handling

Re: FileInput widget and FileField

2007-09-10 Thread Russell Keith-Magee
On 9/10/07, Ronald <[EMAIL PROTECTED]> wrote: > > I completely forgot about that. However, my problem still persists > cause I am not using Models.FileField but Forms.FileField. > > Your solution will work for models but I am using forms and I m not > sure if instance of form has similar method

Re: Django deployment à lá Capistrano

2007-09-10 Thread Chris Hoeppner
> 3) Modifying the production database as necessary. There's one major problem point in making this happen: Rails' migrations. It's pretty simple really, once laid out. Beside svn & tar methods, this is one of the most complex point of this project, and it's also one of the points I'd need most

Re: Django deployment à lá Capistrano

2007-09-10 Thread David Reynolds
On 10 Sep 2007, at 1:10 pm, Chris Hoeppner wrote: >> Would it not be >> better to look at writing a django recipe for capistrano rather than >> trying to re-implement it? > > Also, we can use a ferrari to drive heavy cargo. It's not really about > "can I use it", but more about "will it be

Re: Time Zone Errors

2007-09-10 Thread [EMAIL PROTECTED]
Thanks for your response, i should have searched the previous discussions on this subject my appologies. it seemed indeed that a previous db call issued the problem. thanks again, richard On Sep 10, 12:22 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 9/10/07, [EMAIL PROTECTED] <[EMAIL

Re: how to validate not blank field?

2007-09-10 Thread [EMAIL PROTECTED]
thanks for your reply! i resolved using this code in the models.py before save(): def save(self): if len(self.title)<6: raise ValidationError("cannot be blank or small than 6 byte!") it works for me! but i find this code in django-tagging

hwo to copy and rename a file?

2007-09-10 Thread [EMAIL PROTECTED]
i want to copy file 1.jpg to the 2.jpg in the same folder in django view. how to write such code, thx! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Email model

2007-09-10 Thread Joe Bloggs
I would like to create a model for email so that I can write an application to collect all my emails and then I'll be able to search through them and actually find old relevant emails. Does this model exist anywhere or even better does this application exist? Regards, Joe

Re: When 1.0 ?

2007-09-10 Thread Joel
I suspect you'll find many of those on django-users prefer django over other frameworks. Go to a turbogears user group and you might get another opinion. I happen to like Django over all of the other frameworks I've used. est wrote: > Hi I am a new web developer in django. Could anyone tell

Re: Creating an archive navigation for date_based.archive_month

2007-09-10 Thread Chris Moffitt
Here's how I've done it on my blog. Use this tag (which I pulled from somewhere else on the web)- http://www.satchmoproject.com/trac/browser/satchmoproject.com/satchmo_website/apps/blog/templatetags/month-list.py Here's the template that uses the tag-

Re: Email model

2007-09-10 Thread Anton P. Linevich
Greeting, Joe! Mon, Sep 10, 2007 at 02:24:11PM +0100, polonium210 wrote: > I would like to create a model for email so that I can write an application > to collect all my emails and then I'll be able to search through them and > actually find old relevant emails. > Does this model exist

Re: Email model

2007-09-10 Thread Joe Bloggs
I'm hoping for a model that splits emails into several different tables, e.g. a table of senders, a table of recipients, the sent time, the text body, a table of attachments and possibly some other tables. If these are indexed I can create some forms and views that query the model to say show all

Re: Email model

2007-09-10 Thread Anton P. Linevich
Greeting, Joe! Mon, Sep 10, 2007 at 02:55:10PM +0100, polonium210 wrote: > I'm hoping for a model that splits emails into several different tables, e.g. > a table of senders, a table of recipients, the sent time, the text body, a > table of attachments and possibly some other tables. If these

Re: Email as username in django auth framework

2007-09-10 Thread Jarek Zgoda
None I'm aware of. At least, without heavy code lifting. If you can afford maintaining your own fork of django.contrib.auth, then go for it, it's much simpler than the things we did just to have the application behave right with this snippet as AuthBackend. Some problems are not resolved still,

Trapping insertion/deletion in ManyRelatedManager

2007-09-10 Thread ludo
Is there any sane way of trapping insertion/deletion in the ManyRelatedManager? My use case is pretty simple: I would like to add a num_posts field to a Cetgory object that tracks the number of published entries associated with that specific category. Overriding Entry.save() is useless, as

order_by with foreign keys

2007-09-10 Thread [EMAIL PROTECTED]
hi guys, i noticed there have been questions about this before, but none of those threads was helpful. i've got a simple db-request, the result should be ordered by a column "thema" in a foreign key table "Thema": Test.objects.select_related().order_by("my_app_thema.thema"): this produces the

Re: how to validate not blank field?

2007-09-10 Thread Nis Jørgensen
[EMAIL PROTECTED] skrev: > thanks for your reply! i resolved using this code in the models.py > before save(): def save(self): if len(self.title)<6: raise > ValidationError("cannot be blank or small than 6 byte!") it works for > me! > > but i find this code in django-tagging

Re: Django deployment à lá Capistrano

2007-09-10 Thread Chris Hoeppner
I see your point. Why reinvent the wheel? True. But I'm not trying to re-do capistrano using python instead of ruby. Capistrano has been the spark that made me think about doing this, but that's all there is to Capistrano. I'm doing this because: 1) I've anyways been thinking about this for

Re: Email as username in django auth framework

2007-09-10 Thread MikeHowarth
I'm using this snippet which works fine. In order to get this working, I generate a random string as the username on creation and created a unique index on the email address field. I guess it goes a little against the grain given you're patching the db however I feel email address fields should

Re: order_by with foreign keys

2007-09-10 Thread Michael Radziej
On Mon, Sep 10, [EMAIL PROTECTED] wrote: > > hi guys, > i noticed there have been questions about this before, but none of > those threads was helpful. > > i've got a simple db-request, the result should be ordered by a column > "thema" in a foreign key table "Thema": >

Problem with user login

2007-09-10 Thread Joe
Hi, I have a medium-traffic django site (maybe 2 page views a day) and I am having a problem with users trying to log into the site. I am using the django view for logging in and logging out (django.contrib.auth.views.login). For some reason and only with some users running IE7, they have

Re: Django Video - For a good laugh

2007-09-10 Thread Chris Hoeppner
*lmaorof* El lun, 10-09-2007 a las 16:20 +, Gregg Pollack escribi�: > Django guys, > > I know a few of you must be familiar with the Ruby on Rails vs > ___ commercials http://www.railsenvy.com/tags/Commercials > > We just posted a "Ruby on Rails vs Django" video here: > >

Django Video - For a good laugh

2007-09-10 Thread Gregg Pollack
Django guys, I know a few of you must be familiar with the Ruby on Rails vs ___ commercials http://www.railsenvy.com/tags/Commercials We just posted a "Ruby on Rails vs Django" video here: http://www.railsenvy.com/2007/9/10/ruby-on-rails-vs-django-commercial-7 Disclaimer:

Re: Newbie (Before I get started)

2007-09-10 Thread tmb
Thanks, Mike. It really helps to get feedback like this. I've been reading about authentication and it seems that it can work well on my custom admin that I'm building. Extendable is right :) On Sep 10, 12:52 am, MikeHowarth <[EMAIL PROTECTED]> wrote: > I've been working in Django for all of

Re: order_by with foreign keys

2007-09-10 Thread [EMAIL PROTECTED]
that helps, thanks very much... i got a bit confused by all the tickets concerning this issue. also the documentation doesn't mention any bugs, well bad luck ;) On 10 Sep., 17:53, Michael Radziej <[EMAIL PROTECTED]> wrote: > On Mon, Sep 10, [EMAIL PROTECTED] wrote: > > > hi guys, > > i noticed

Re: Django Video - For a good laugh

2007-09-10 Thread Jon Atkinson
Brilliant :-) On 9/10/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > *lmaorof* > > > El lun, 10-09-2007 a las 16:20 +, Gregg Pollack escribi�: > > Django guys, > > > > I know a few of you must be familiar with the Ruby on Rails vs > > ___ commercials

Re: order_by with foreign keys

2007-09-10 Thread John Lenton
On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > that helps, thanks very much... > > i got a bit confused by all the tickets concerning this issue. also > the documentation doesn't mention any bugs, well bad luck ;) fortunately you can add a comment to the documentation, mentioning

Re: Problem with user login

2007-09-10 Thread Michael Radziej
On Mon, Sep 10, Joe wrote: > > Hi, > > I have a medium-traffic django site (maybe 2 page views a day) and > I am having a problem with users trying to log into the site. > > I am using the django view for logging in and logging out > (django.contrib.auth.views.login). For some reason and

Re: Problem with user login

2007-09-10 Thread Joe
The domain of the cookie is .mydomain.com. How do I disable ETags? I have the common middleware installed, which I think handles the etags part. What headers control the browser cache? Can someone check the order of my middleware? I have a sneaking suspicion this has something to do with

Re: Problem with user login

2007-09-10 Thread Joe
Ok, just noticed that Django has etags disabled by default, and I haven't touched that setting. Any other ideas? On Sep 10, 1:50 pm, Joe <[EMAIL PROTECTED]> wrote: > The domain of the cookie is .mydomain.com. > > How do I disable ETags? I have the common middleware installed, which > I think

Re: Performance for django for years

2007-09-10 Thread Xan
Thanks. Now, I will use PositiveSmallIntegerField I don't need a whole PositiveIntegerField (1900-->2100) and I want to compare years Thanks a lot, Xan. PS: Greg, yes there are lot of documentation, but it's more technical. Web site of django offers a good tutorial, good for "anybody". Rails

Re: Email as username in django auth framework

2007-09-10 Thread cesco
Hi > I'm using this snippet which works fine. Which snippet? Thanks Francesco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

A Cooooooooooool Entertainment website

2007-09-10 Thread Farah
Watch online movie n Reguest if u want to sea any other movie www.FunAtoZ.com www.CellAtoZ.com for downloading 3gp videos n www.getrealcash.com to earn online 5000/m --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Watch online movie n Reguest if u want to sea any other movie

2007-09-10 Thread Farah
Watch online movie n Reguest if u want to sea any other movie www.FunAtoZ.com www.CellAtoZ.com for downloading 3gp videos n www.getrealcash.com to earn online 5000/m --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Latest Walllpapers OF OM Shanti Om

2007-09-10 Thread [EMAIL PROTECTED]
Latest Walllpapers OF OM Shanti Om http://DesktopAtoZ.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 from

Latest Walllpapers OF Laga Chunri main daagh$$

2007-09-10 Thread [EMAIL PROTECTED]
http://DesktopAtoZ.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 from this group, send email to [EMAIL

Problems with deploying django

2007-09-10 Thread shabda
I am trying to deploy django on a fedora 7 system. After following these steps I am stuck! (Long tale of woes ahead, If you can just tell me where can I get apxs for apache, my problem is solved.) 1. Downloaded django, tried running setup.py, got an error saying something like unable to open

Re: Django deployment à lá Capistrano

2007-09-10 Thread David Reynolds
On 10 Sep 2007, at 4:13 pm, Chris Hoeppner wrote: > I see your point. Why reinvent the wheel? True. But I'm not trying to > re-do capistrano using python instead of ruby. Capistrano has been the > spark that made me think about doing this, but that's all there is to > Capistrano. > > I'm doing

Hotest Wallpapers Britny Spers

2007-09-10 Thread [EMAIL PROTECTED]
http://DesktopAtoZ.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 from this group, send email to [EMAIL

Re: Problems with deploying django

2007-09-10 Thread Brian Morton
I would remove your source built code and reinstall python2.5 and the development package for it. Make sure any other versions of python are uninstalled unless other packages depend on them. On Sep 10, 3:11 pm, shabda <[EMAIL PROTECTED]> wrote: > I am trying to deploy django on a fedora 7

More deployment woes

2007-09-10 Thread shabda
I am trying to deploy django, and to test the install I am doing this, I run django-admin.py startproject hello in directory /root/django I have added to my httpd.conf SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE hello.settings

Email as username in django auth framework

2007-09-10 Thread novice
Hello, I am using the django auth and liking it, but I would like to make the username to be an email field. I can do it easily by changing the user model in the auth, but is there any way of accomplishing this without changing the user model? I came across this snippet

Re: Multi-table lookup ... ?

2007-09-10 Thread dbee
Hmm, I'm not entirely sure where you got the campaign.groups_set construction there James. There is no campaign.groups_set afaik ... I've been trying to mess about with it and what I've gotten so far is this ... # Get the details of the reminders to whom this campaign will be sent

Re: Multi-table lookup ... ?

2007-09-10 Thread Chris Brand
dbee wrote: >Hmm, I'm not entirely sure where you got the campaign.groups_set >construction there James. There is no campaign.groups_set afaik ... > > > Probably from here : http://djangoproject.com/documentation/db-api/#related-objects Did you try it or just assume that James made a mistake

form name from the POST request

2007-09-10 Thread Oleg Korsak
Hello. How can I get a form name from the POST request? Also how can I explore a "request" object to see what it contains? Thanks. signature.asc Description: OpenPGP digital signature

Re: More deployment woes

2007-09-10 Thread Graham Dumpleton
Apache normally runs as a special user. Are your files and the directories leading down to them readable to others so that the Apache user can find them and read them? Graham On Sep 11, 6:49 am, shabda <[EMAIL PROTECTED]> wrote: > I am trying to deploy django, and to test the install I am doing

Re: More deployment woes

2007-09-10 Thread Ramiro Morales
On 9/10/07, shabda <[EMAIL PROTECTED]> wrote: > > I am trying to deploy django, and to test the install I am doing this, > I run django-admin.py startproject hello in directory /root/django > I have added to my httpd.conf > > > SetHandler python-program > PythonHandler

Re: Apache serving media files

2007-09-10 Thread Graham Dumpleton
On Sep 10, 6:19 pm, Rufman <[EMAIL PROTECTED]> wrote: > im having problems serving media files in apache together with django. > Somehow Apache can't get the admin media files or my own (located at / > projectroot/media) for that matter. > > my apache conf file: > > >

Re: hwo to copy and rename a file?

2007-09-10 Thread [EMAIL PROTECTED]
thx, using this code can resolve the issue: import shutil shutil.copyfile(src,dst) On 9月10日, 下午10时10分, omat <[EMAIL PROTECTED]> wrote: > check the python documentation:http://docs.python.org > > On 10 Eylül, 16:21, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > i want to copy file 1.jpg

Re: Model.py not creating MYSQL tables.

2007-09-10 Thread John
The template, view, and form are in dpaste 18690 [Template] 19181 [View] 19183 [Form] I'm using the django contact form On Sep 4, 6:25 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 9/4/07, John <[EMAIL PROTECTED]> wrote: > > > > > Thanks. That works. > > > Now I'm only getting partial

Re: Multi-table lookup ... ?

2007-09-10 Thread dbee
As far as I understand it, campaign.groups_set would only be relevant for a 'backwards' relationship. Whereas in this case campaign.group is actually relevant. Yes, I tried it - and I tried many other combinations as well ... Thanks On Sep 10, 10:18 pm, Chris Brand <[EMAIL PROTECTED]> wrote: >

problem with urls for generic views

2007-09-10 Thread Car
With development server everything works fine (py 2.5), but after uploading to production server (;y 2.4) I have following error msg. Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/core/handlers/ base.py" in get_response 68. callback, callback_args,

Overriding Admin templates on a per-app and per-model basis

2007-09-10 Thread AndyB
I was rather pleased to read that the above was possible according to the Django book: http://www.djangobook.com/en/beta/chapter18/ (scroll down to the section called 'Customizing admin templates') I've already been overriding the admin templates globally by putting custom templates in a folder

Re: Django deployment à lá Capistrano

2007-09-10 Thread qwerty
I think db schema migration should wait until django has some feature that supports it, a limited set of scripting (python itself of course) should be allowed in the "recipes" "recipes" is capistrano nomenclature, how should be called in this new project? "jobs", or "tasks" is a good way to go.

Re: problem with urls for generic views

2007-09-10 Thread Matt McClanahan
On Sep 10, 4:38 pm, Car <[EMAIL PROTECTED]> wrote: > With development server everything works fine (py 2.5), but after > uploading to production server (;y 2.4) I have following error msg. > TypeError at / > cannot concatenate 'str' and 'function' objects > > After commenting these lines

Re: Login issues

2007-09-10 Thread Russell Keith-Magee
On 9/10/07, MikeHowarth <[EMAIL PROTECTED]> wrote: > > Hi guys > > Was wondering if anyone knew of any bugs within the user > authentication system associated to setting the backend attribute? Not that I'm aware of - and certainly not with the default authentication backend. > Basically looking

Re: Email model

2007-09-10 Thread Collin Grady
You are likely going to have to write that sort of app yourself. --~--~-~--~~~---~--~~ 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

Re: ANN: Screencast - Learn Django: Create a Wiki in 20 minutes

2007-09-10 Thread Siddhi
Thanks for your comments for the first screencast. I just finished the second screencast, this time covering the basics of template inheritance, filters and newforms. http://showmedo.com/videos/video?name=1100010=110 As always, comments would be welcome. -- Siddharta Govindaraj

Re: form name from the POST request

2007-09-10 Thread Greg Donald
On Tue, 11 Sep 2007, Oleg Korsak wrote: > Hello. How can I get a form name from the POST request? As far as I know it's not sent. Use a hidden field to identify the form server side. > Also how can I explore a "request" object to see what it contains? print '%s' % request.POST -- Greg

import setting error

2007-09-10 Thread [EMAIL PROTECTED]
in settings.py: MEDIA_ROOT = 'd:/djangopro/mysite/media/' in views.py: from django.conf import settings src = MEDIA_ROOT + 'user/defalut.jpg' but i got this error: equest Method: POST Request URL:http://127.0.0.1/accounts/register/ Exception Type: NameError Exception

Re: import setting error

2007-09-10 Thread Yung-Yu Chen
It seems to be a small mistake about namespace in your Python code. Try replace src = MEDIA_ROOT + 'user/defalut.jpg' with src = settings.MEDIA_ROOT + 'user/defalut.jpg' On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > in settings.py: > MEDIA_ROOT = 'd:/djangopro/mysite/media/'

Re: When 1.0 ?

2007-09-10 Thread Nicolas Steinmetz
est a écrit : > Hi I am a new web developer in django. Could anyone tell me when will > django go to 1.0? Will django support py3k? Is django worth learning > compared with other web frameworks like turbogears, RoR? based on what you can find when searching on the list : - 1.0 : when ready :-) -

Linux django_settings_module problem

2007-09-10 Thread johnny
Trying to run standalone python script that uses django orm. Something wrong with path setup to execute this python script. Also, what is the purpose of setting $DJANGO_SETTINGS_MODULE=mysite.settings? I think this is where the problem is. /home/bobby/dev/workspace has folder: mysite,

Re: Linux django_settings_module problem

2007-09-10 Thread Graham Dumpleton
Did you export the environment variables after you sent them. export PYTHONPATH export DJANGO_SETTINGS_MODULE Graham On Sep 11, 2:14 pm, johnny <[EMAIL PROTECTED]> wrote: > Trying to run standalone python script that uses django orm. > Something wrong with path setup to execute this python

Re: import setting error

2007-09-10 Thread [EMAIL PROTECTED]
it is ok now, thx! On 9月11日, 上午11时56分, "Yung-Yu Chen" <[EMAIL PROTECTED]> wrote: > It seems to be a small mistake about namespace in your Python code. Try > replace > src = MEDIA_ROOT + 'user/defalut.jpg' > with > src = settings.MEDIA_ROOT + 'user/defalut.jpg' > > On 9/10/07, [EMAIL

where to control redirect url in update_object?

2007-09-10 Thread [EMAIL PROTECTED]
i have a view as following: def edit_profile(request, slug=None): from django.views.generic.create_update import update_object try: if slug: auth_user = User.objects.get(username=slug) elif request.user: auth_user = request.user

Re: where to control redirect url in update_object?

2007-09-10 Thread Ross Poulton
On Sep 11, 2:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > after updating the object, it redirect to /users/xxx, but i want it go > to /user/xxx. django.contrib.auth.models.User defines get_absolute_url() for the User object as /users/xxx. the update_object() view by default uses

Re: Django Flatpages With Memcache as storage location

2007-09-10 Thread Sasha Weberov
On Sep 9, 8:52 pm, Brian Morton <[EMAIL PROTECTED]> wrote: > What happens if you use a simple or dummy cache? > > On Sep 9, 2:51 pm, Sasha Weberov <[EMAIL PROTECTED]> wrote: > > > > > On Sep 9, 6:15 am, Thomas Badran <[EMAIL PROTECTED]> wrote: > > > > My best guess would be that you are missing

Re: where to control redirect url in update_object?

2007-09-10 Thread [EMAIL PROTECTED]
you are right, thank you! On 9月11日, 下午1时28分, Ross Poulton <[EMAIL PROTECTED]> wrote: > On Sep 11, 2:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > after updating the object, it redirect to /users/xxx, but i want it go > > to /user/xxx. > > django.contrib.auth.models.User defines