Creating Dybamic "models"

2008-07-19 Thread code-zoop
Hello All. I am on my first prject with Django, and I really love it. I have never been so productive with so few lines of code (coming from php). I am writing a simple cms system, and have the core up and running. I have a general article model that contains all fields for the articles. I am tr

Re: How to have both newforms-admin and previous version on the same machine?

2008-07-19 Thread ge
Don't know if this helps for your case, but I simply clone the django repository using git-svn, and then sym link the django directory to site-packages in the usual fashion. When you want to switch to a different branch, its as simple as running 'git checkout '. You can switch back and forth fr

Using Django Syndication for RSS Feed

2008-07-19 Thread [EMAIL PROTECTED]
I'm trying to generate RSS feed for my site using Django's syndication framework. I'm having 2 issues: 1) While the generated feed gets displayed correctly in Firefox, Internet explorer v6x presents a 'save file as' prompt - like it doesnt recognize the incoming data as a feed Any ideas on how t

Full-Time On-Site Django Developer Needed

2008-07-19 Thread JustJohnny
I've cross-posted this over at http://djangogigs.com/gigs/278/, as well. If you like to build data-driven content in a rapid-development environment, TBO.com’s Operations staff may be the place for you. TBO.com, the Tampa, Florida-based interactive partner of The Tampa Tribune and WFLA-TV, is loo

Re: Heavy database query (max 32 tables problem)

2008-07-19 Thread Deniz Dogan
Indeed I am. So if Leon Yeh could give me my thread back, I'd appreciate if anyone could inform me about a good solution to my problem. Deniz On 18 Juli, 17:58, "Scott Moonen" <[EMAIL PROTECTED]> wrote: > Norman, unfortunately I think he's asking for the mutual intersection of the > users' cours

Re: Sets

2008-07-19 Thread Julien Phalip
'set' is a Python standard object [1], since version 2.4. In version 2.3 you need to import the 'Set' package first. So, if you care about backward compatibility in Python, the most secure way to import it is: try: set except NameError: from sets import Set as set # Python 2.3 fallback [

Re: Great work with newforms-admin

2008-07-19 Thread Tom Badran
Yes the first link is the one i used. Tom On Sat, Jul 19, 2008 at 6:21 PM, James Punteney <[EMAIL PROTECTED]> wrote: > I believe this is the page he is referring to: > http://code.djangoproject.com/wiki/NewformsAdminBranch > > Another one that might be helpful: > http://code.djangoproject.com/wi

Re: Unicode errors

2008-07-19 Thread Amirouche B.
it works, I don't know why but... --~--~-~--~~~---~--~~ 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

Sets

2008-07-19 Thread Cole Tuininga
Quick question for you folks - is there a native "set" type in the Django model system? I'm currently on 0.96.1. Thanks! -- Cole Tuininga http://www.tuininga.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Great work with newforms-admin

2008-07-19 Thread Karen Tracey
On Sat, Jul 19, 2008 at 9:01 PM, Martin Diers <[EMAIL PROTECTED]> wrote: > Beat me to it. > > I suppose someone should file a bug to update these: > > http://www.djangoproject.com/documentation/ > http://www.djangoproject.com/documentation/add_ons/ > > and add a link to the admin doc. > There is

Re: How to have both newforms-admin and previous version on the same machine?

2008-07-19 Thread Rodrigo Culagovski
Great, thanks for the advice. So, using virtualenv, I basically install two separate environments, one for each django version, and manually call "\path\to\djangoversion \bin\activate.bat" depending on which version I need? Or is there a way to activate the correct version directly from the projec

Re: How to have both newforms-admin and previous version on the same machine?

2008-07-19 Thread [EMAIL PROTECTED]
Do not install django as part of site-packges. Treat it as a python package like any other. Create two directories: django-0.96/ django-pre-1.0/ put the old django in 0.96 (as a sub directory 'django') put the new svn in pre-1.0 Then for your projects have your PYTHONPATH set appropriatly. beca

How to have both newforms-admin and previous version on the same machine?

2008-07-19 Thread Rodrigo Culagovski
I'm looking foward to trying out the merged newforms-admin on my upcoming projects. However, I have a few ongoing projects already developed using pre-newforms-admin django. I make changes to the projects on my local machine and test them before comitting them to the remote production sites, so, u

Re: TemplateDoesNotExist at /admin/

2008-07-19 Thread eka
I just got a MacBook with Tiger os. Installed MacPython and got Django from SVN. Followed the installation on how to link the django dir to the site-packages, and in my case, since is a sym link the templates are in the same tree that the django code, but still having this trouble... the path: /

Re: superuser has no rights with newforms admin

2008-07-19 Thread stryderjzw
Strange, I'm getting the message "You don't have permission to edit anything." on the admin homepage. I've done admin.autodiscover() on the project urls page, I've created admin.py files for my models and registered the classes with admin.site.register(). Any clues? Cheers! Justin On Jul 19, 1

Re: Great work with newforms-admin

2008-07-19 Thread Martin Diers
Beat me to it. I suppose someone should file a bug to update these: http://www.djangoproject.com/documentation/ http://www.djangoproject.com/documentation/add_ons/ and add a link to the admin doc. On Jul 19, 2008, at 7:54 PM, Karen Tracey wrote: > On Sat, Jul 19, 2008 at 8:50 PM, Rodrigo Culag

Re: Great work with newforms-admin

2008-07-19 Thread Rodrigo Culagovski
Thanks! Super fast, too. On Jul 19, 8:54 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, Jul 19, 2008 at 8:50 PM, Rodrigo Culagovski <[EMAIL PROTECTED]> > wrote: > > > > > Is there a complete reference for newforms-admin (not a FAQ, tutorial > > or changelist) other than the code itself?

Re: Great work with newforms-admin

2008-07-19 Thread Karen Tracey
On Sat, Jul 19, 2008 at 8:50 PM, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > Is there a complete reference for newforms-admin (not a FAQ, tutorial > or changelist) other than the code itself? > http://www.djangoproject.com/documentation/admin/ Karen --~--~-~--~~~--

Re: Great work with newforms-admin

2008-07-19 Thread Rodrigo Culagovski
Is there a complete reference for newforms-admin (not a FAQ, tutorial or changelist) other than the code itself? On Jul 19, 4:46 pm, "Tom Badran" <[EMAIL PROTECTED]> wrote: > Yes the first link is the one i used. > > Tom > > On Sat, Jul 19, 2008 at 6:21 PM, James Punteney <[EMAIL PROTECTED]> wrot

Great work with newforms-admin

2008-07-19 Thread Tom Badran
I've just updated 2 of my sites to use newforms-admin today following the changes on the django wiki. I've not been paying attention to the development of newforms-admin, so i was going into this completely blind as it were. Just wanted to say everyone who worked on this has done a wonderful job.

Re: Problems with Template "Extends" - Voodoo, anyone?

2008-07-19 Thread Tye
The CSS is affecting each version differently, although it's the same *exact* tag within the HTML source. I'm trying to focus on why those changes are occurring with duplicate code. On Jul 19, 5:29 am, Julien Phalip <[EMAIL PROTECTED]> wrote: > Hi, > > It is not very clear what problem you're h

Re: Source changes: How can I resolve import error -- cannot import django.db.models.query.parse_lookup

2008-07-19 Thread LRP
Bill, Did the trick! Many thanks. Best wishes, LRP On Jul 17, 9:13 pm, Bill Totman <[EMAIL PROTECTED]> wrote: > Here's the solution (so far): > > 1) Obtain the SVN version of django-tagging. > 2) Place it or link the 'tagging' directory step '1' provides you into > your $PYTHONPATH > 3) pytho

Re: Trim URLs

2008-07-19 Thread Malcolm Tredinnick
On Sat, 2008-07-19 at 18:11 +0200, Torsten Bronger wrote: > Hallöchen! > > I just tried to move from the test web server to a real Apache. The > docs (http://www.djangoproject.com/documentation/modpython/) say > > Restart Apache, and any request to /mysite/ or below will be > served by

Re: superuser has no rights with newforms admin

2008-07-19 Thread Brian Rosner
On Jul 19, 2008, at 10:36 AM, Eric Abrahamsen wrote: > Short answer: register all your models with admin.site.register(), and > use admin.autodiscover() too. This is correct. admin.autodiscover() simply imports admin.py modules in your INSTALLED_APPS. Previously, in the days of the branch, th

Re: Great work with newforms-admin

2008-07-19 Thread Ramdas S
Thanks Guys. I'll need to move some 30 odd sites in the next one week. RS On Sat, Jul 19, 2008 at 10:51 PM, James Punteney <[EMAIL PROTECTED]> wrote: > I believe this is the page he is referring to: > http://code.djangoproject.com/wiki/NewformsAdminBranch > > Another one that might be helpful:

Re: Great work with newforms-admin

2008-07-19 Thread James Punteney
I believe this is the page he is referring to: http://code.djangoproject.com/wiki/NewformsAdminBranch Another one that might be helpful: http://code.djangoproject.com/wiki/NewformsHOWTO --James On Sat, Jul 19, 2008 at 1:04 PM, Ramdas S <[EMAIL PROTECTED]> wrote: > Tom, > > Can you just share th

Re: Great work with newforms-admin

2008-07-19 Thread Ramdas S
Tom, Can you just share the wiki page link please. I need some place to start Ramdas On Sat, Jul 19, 2008 at 10:28 PM, Tom Badran <[EMAIL PROTECTED]> wrote: > I've just updated 2 of my sites to use newforms-admin today following the > changes on the django wiki. I've not been paying attention

Re: superuser has no rights with newforms admin

2008-07-19 Thread Karen Tracey
On Sat, Jul 19, 2008 at 12:36 PM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > > > I've tried alternating between using admin.autodiscover() in my > > urls.py, and manually registering my models using > > admin.site.register(Person), but I still get the permission error in > > the admin site. I've

Re: superuser has no rights with newforms admin

2008-07-19 Thread Eric Abrahamsen
> I've tried alternating between using admin.autodiscover() in my > urls.py, and manually registering my models using > admin.site.register(Person), but I still get the permission error in > the admin site. I've also tried flushing the database, but that > doesn't seem to solve anything. FWIW, my

Re: Cookie content string error

2008-07-19 Thread 0sn
I've narrowed it down to memcached... if I set CACHE_BACKEND = 'dummy:///' then the cookies get set properly. What fixed it finally was adding the @vary_on_cookie decorator to the views that need the cookie: http://code.google.com/p/nameremoved/source/browse/trunk/comics/views.py I hope this help

Re: newforms-admin branch has been merged into trunk

2008-07-19 Thread Brian Rosner
On Jul 18, 2008, at 6:22 PM, Ariel Mauricio Nunez Gomez wrote: > BTW: Bryan, you've gotta redo the commits visualization[1] for > another big explosion!! I plan on updating the visualization right after we release 1.0. :) --~--~-~--~~~---~--~~ You received thi

Trim URLs

2008-07-19 Thread Torsten Bronger
Hallöchen! I just tried to move from the test web server to a real Apache. The docs (http://www.djangoproject.com/documentation/modpython/) say Restart Apache, and any request to /mysite/ or below will be served by Django. Note that Django’s URLconfs won’t trim the “/mysite/” — they

Re: Unicode errors

2008-07-19 Thread Baczek
On 19 Lip, 14:01, Amirouche <[EMAIL PROTECTED]> wrote: > I got an encoding error while rendering in the admin some text I > parsed from a feed with feedparser > > Caught an exception while rendering: 'ascii' codec can't encode > character u'\u2605'. > > everything is utf-8 compliant (db = sqlite3)

Re: superuser has no rights with newforms admin

2008-07-19 Thread Jon Atkinson
> Figured out what went wrong. You now have to register your models > with the admin app, which will give you access. > > If anyone else that is completely awful at Django is running into the > same problem let me know and I'll go in to more depth. Could you let me know what you did to fix this?

Re: Unicode errors

2008-07-19 Thread Amirouche B.
here are my models http://dpaste.com/66067/ I use smart_unicode even if it's already UTF-8 and no more error but nothing appears in the admin detailed view of posts On 19 juil, 14:49, Amirouche <[EMAIL PROTECTED]> wrote: > I'm using the trunck version > > Environment: > > Request Method: GET > R

Re: Unicode errors

2008-07-19 Thread Amirouche
I'm using the trunck version Environment: Request Method: GET Request URL: http://127.0.0.1:8000/admin/blogfeeds/post/15/ Django Version: 0.97-newforms-admin-SVN-7977 Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions',

Re: Problems with Template "Extends" - Voodoo, anyone?

2008-07-19 Thread Julien Phalip
Hi, It is not very clear what problem you're having here. What are those noticeable differences? On Jul 19, 12:54 pm, Tye <[EMAIL PROTECTED]> wrote: > Quick background: I started a new project ("mpi") and app ("main"), > created a template folder and added its path to settings, and did > everyth

Re: Unicode errors

2008-07-19 Thread Julien Phalip
Hi, Could you post the whole traceback? Also, precise what version of Django you're using. Without that info it's a bit hard to help you. Cheers, Julien On Jul 19, 10:01 pm, Amirouche <[EMAIL PROTECTED]> wrote: > I got an encoding error while rendering in the admin some text I > parsed from a

Unicode errors

2008-07-19 Thread Amirouche
I got an encoding error while rendering in the admin some text I parsed from a feed with feedparser Caught an exception while rendering: 'ascii' codec can't encode character u'\u2605'. everything is utf-8 compliant (db = sqlite3) so I don't understand, the error happenned in *force_unicode*. a

Re: ifequal with url pattern?

2008-07-19 Thread V
what about ifequal flatpage.url[:len('/products/')] '/products/' so you always check the beginning of the url V On Jul 18, 11:38 pm, Eliza <[EMAIL PROTECTED]> wrote: > Hi, > > I'm new to Django and am working on a template, and I have the feeling > I may be approaching something the wrong way.

Re: newforms-admin branch has been merged into trunk

2008-07-19 Thread Karen Tracey
On Fri, Jul 18, 2008 at 10:11 PM, Robvdl <[EMAIL PROTECTED]> wrote: > > Thanks very much for this > > I have been running Newforms Admin for a while, so when the big > changeover was going to hit, I would be ready, not changing too much > existing code. > > One thing I noticed now, running SVN 796