Re: Modify Session in TemplateTag?

2007-07-05 Thread rtconner
Gah dumb groups thinking I was quoting something... del context['request'].session['some key'] sess = SessionMiddleware() http = HttpResponse() sess.process_response(context['request'], http) --~--~-~--~~~---~--~~ You received this message because you are

Modify Session in TemplateTag?

2007-07-05 Thread rtconner
So I realize I'm doing something non-standard here, but still I have my reasons, and if I can pull this off, it'll make life easier for me in the future. .. is it possible to save to the Session within a TemplateTag? I don't really see how it is, but I'm hoping someone knows something that I

Re: Help for side project needed (Django + JavaScript)

2007-07-05 Thread Joe Bloggs
The minimum wage in the UK for people over 22 is £5.35 which at current exchange rates is $10.70 On 7/5/07, wrb <[EMAIL PROTECTED]> wrote: > > 10usd/h? for god's sake > > 2007/7/4, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > > Django Users, > > > > First let me apologize for this spammy

Best practices to provide Django on a shared host

2007-07-05 Thread Fabien Schwob
Hello, I'm currently hosting my Django websites on a dedicated server and it works fine. I restart Apache when I make modifications since I'm alone on the box. But I've made evangelism for Django and I've convinced some friends to use it. So I would like to take a new server and to set up a

utf-8 and legacy databases

2007-07-05 Thread koenb
Do I understand correctly that with the unicode branch, databases are supposed to be providing and accepting utf-8 data ? This assumption is ok for self-constructed databases, but I am interacting with a legacy database that is in iso-8859-1 and I can't change that. Is there a setting somewhere

One-to-many relations

2007-07-05 Thread mrstone
Hi all I have a problem I have been struggeling with for a while. I have two models: InfoProxy and Permission A InfoProxy can have several Permissions class Permission(models.Model): info_proxy = models.ForeignKey(InfoProxy, related_name='permissions') permission_type =

Re: Best practices to provide Django on a shared host

2007-07-05 Thread Evan H. Carmi
Fabien Schwob wrote: > Hello, > > I'm currently hosting my Django websites on a dedicated server and it > works fine. I restart Apache when I make modifications since I'm alone > on the box. > > But I've made evangelism for Django and I've convinced some friends to > use it. So I would like to

Re: Admin module, user account editing and group assignment info

2007-07-05 Thread Angela Sutanto
On 7/4/07, Chris Brand <[EMAIL PROTECTED]> wrote: > If you go to edit that same user in the Admin, the group should be selected > in that same multiselect box. > > It's as simple as that. Aha - it did not occur me. I was looking for some gadget proof against an accidental (re)selection. This

Re: How to know what went wrong with the .save()

2007-07-05 Thread AnaReis
On Jul 4, 4:35 pm, RajeshD <[EMAIL PROTECTED]> wrote: > On Jul 4, 12:14 pm, AnaReis <[EMAIL PROTECTED]> wrote: > > > Hi again, > > Thanks for the suggestion, but this still isn't working... the > > difference between this module and the others that I have already made > > is that (besides the

Re: utf-8 and legacy databases

2007-07-05 Thread Malcolm Tredinnick
On Thu, 2007-07-05 at 01:10 -0700, koenb wrote: > Do I understand correctly that with the unicode branch, databases are > supposed to be providing and accepting utf-8 data ? This assumption is > ok for self-constructed databases, but I am interacting with a legacy > database that is in iso-8859-1

Re: Best practices to provide Django on a shared host

2007-07-05 Thread Fabien Schwob
> Textdrive (Joyent) offers Django hosting. > > There is an install script that will setup Django for you: > http://textusers.com/wiki/Installing_Django The problem is that I would like to make my own configuration from a raw Linux distribution (In my case a Ubuntu 6.10 or 7.04). So, with this

Re: Cross Importing Model Problem

2007-07-05 Thread Nis Jørgensen
Bryan Veloso skrev: (I am only commenting on the model (database and Django) in this post - I don't really know enough about imports to help you with that bit) > I have 2 models for an MMORPG control panel I'm building. Each set of > data is within it's own app with related models, etc. So

Re: Building forms by hands

2007-07-05 Thread Russell Keith-Magee
On 7/5/07, Alexander Solovyov <[EMAIL PROTECTED]> wrote: > > Hi all. > > I want to build forms in HTML by hands, without helpers from django > (like outputting field with label and etc), but I can't find one thing > - how I can get value from field (to select appropriate field in > radioselect,

Re: Unicode branch merged into trunk

2007-07-05 Thread Massimiliano Ravelli
Great work Malcolm ! Thank you very much. On 4 Lug, 14:41, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Thankyou to this group of early adopters for your early testing feedback. Well, as an early adopter of unicode branch, I should have reported that in a few weeks of usage I didn't find any

Re: Using newforms to create multiple related objects?

2007-07-05 Thread Russell Keith-Magee
On 6/29/07, Michael Sylvan <[EMAIL PROTECTED]> wrote: > > Is there a way to do this sort of things cleanly, short of using the > newforms-admin branch of Django? Or do I have to do something like > changing the form's fields attribute by hand? Using formsets from newforms-admin will be the

Re: Best practices to provide Django on a shared host

2007-07-05 Thread Graham Dumpleton
On Jul 5, 5:38 pm, "Fabien Schwob" <[EMAIL PROTECTED]> wrote: > Hello, > > I'm currently hosting my Django websites on a dedicated server and it > works fine. I restart Apache when I make modifications since I'm alone > on the box. > > But I've made evangelism for Django and I've convinced some

Error from JSON serializer

2007-07-05 Thread web-junkie
Hi, after updating to the trunk with the merged Unicode branch I get errors for my json pages. Everything is normal until I request something where it would serialize data with foreign language letters which comes as Unicode from the database. And as far as I can tell I have done everything it

Re: How to know what went wrong with the .save()

2007-07-05 Thread AnaReis
Hi again, >From what I could understand, I would have to recreate the database so that django could create an ID field for me. Unfortunately that isn't possible because I'm using a legacy database and I can't change it. In this database, the primary key is the two fields combined, so their

Re: How to know what went wrong with the .save()

2007-07-05 Thread AnaReis
Hi again, >From what I could understand, I would have to recreate the database so that django could create an ID field for me. Unfortunately that isn't possible because I'm using a legacy database and I can't change it. In this database, the primary key is the two fields combined, so their

Re: Error from JSON serializer

2007-07-05 Thread web-junkie
okay, seems this ensure_ascii=False is useless, without it there's no error. On 5 Jul., 14:13, web-junkie <[EMAIL PROTECTED]> wrote: > Hi, > > after updating to the trunk with the merged Unicode branch I get > errors for my json pages. Everything is normal until I request > something where it

Re: [django-users] Re: Spawning long processes

2007-07-05 Thread Simon Drabble
On Thu, 5 Jul 2007, Oliver Charles wrote: > > Just to give an update, I've tried forking the view, and then turning > the child process into a daemon with a double fork, and then exiting > before it gets to the return, and letting the parent do the return, > but this is not working either... > >

newforms: saving relations via intermediary table

2007-07-05 Thread va:patrick.kranzlmueller
I´m having trouble using newforms with an intermediary table (although I´m not sure that my problem relates to newforms anyhow). models: class UserExtendedProfile(models.Model): ... class UserExtendedProfileFavourites(models.Model): userextendedprofile =

Re: How to know what went wrong with the .save()

2007-07-05 Thread RajeshD
On Jul 5, 8:44 am, AnaReis <[EMAIL PROTECTED]> wrote: > Hi again,>From what I could understand, I would have to recreate the database > so > > that django could create an ID field for me. Unfortunately that isn't > possible because I'm using a legacy database and I can't change it. Right. > In

Re: Unicode branch merged into trunk

2007-07-05 Thread RajeshD
Thank you, Malcolm! --~--~-~--~~~---~--~~ 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: Spawning long processes

2007-07-05 Thread Oliver Charles
Just to give an update, I've tried forking the view, and then turning the child process into a daemon with a double fork, and then exiting before it gets to the return, and letting the parent do the return, but this is not working either... I'm stumped, and don't really want to have to create a

Re: Spawning long processes

2007-07-05 Thread Simon Drabble
On Thu, 5 Jul 2007, Oliver Charles wrote: > > That doesn't work, I've tried that, it still hangs the view. > > Give it a shot with a long python script (while True: time.sleep(1) > would do) and you'll find that the view never returns. If you can get > it to return, I'd love to see your code,

Re: Spawning long processes

2007-07-05 Thread Oliver Charles
That doesn't work, I've tried that, it still hangs the view. Give it a shot with a long python script (while True: time.sleep(1) would do) and you'll find that the view never returns. If you can get it to return, I'd love to see your code, but it's no go for me... On Jul 5, 2:57 pm, Simon

Re: How to know what went wrong with the .save()

2007-07-05 Thread Jeremy Dunck
On 7/5/07, RajeshD <[EMAIL PROTECTED]> wrote: > Not sure. What RDBMS are you using? I understand about the need to > retain your DB structure as is but are you allowed to *add* new > constraints to the DB? Django does not support multi-column primary key tables. If you'll be doing

Stopping second form post if refresh is hit?

2007-07-05 Thread [EMAIL PROTECTED]
On most of my form posts, I redirect to another page once I save whatever data has been posted on the form. ( I am not using new forms, and in some cases I'm even using old fashioned hand rolled forms to post from a view. ) In the cases where an existing record is being edited, this doesn't

Re: Stopping second form post if refresh is hit?

2007-07-05 Thread Jeremy Dunck
On 7/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In the cases where an existing record is being edited, this doesn't > really matter, but when a user adds a new record, and I redirect him > to the page to view all of the objects in that table, if he then hits > refresh, it adds the

Re: Stopping second form post if refresh is hit?

2007-07-05 Thread KpoH
Use HttpResponseRedirect from django.http [EMAIL PROTECTED] пишет: > On most of my form posts, I redirect to another page once I save > whatever data has been posted on the form. ( I am not using new > forms, and in some cases I'm even using old fashioned hand rolled > forms to post from a

Re: Spawning long processes

2007-07-05 Thread Oliver Charles
Ahhh, I got it now - Thanks so much Simon! The problem was I had left out close_fds, so it was still spawning as a child process I think. With close_fds it works a treat - thank you once again :D - Ollie On Jul 5, 3:18 pm, Simon Drabble <[EMAIL PROTECTED]> wrote: > On Thu, 5 Jul 2007, Oliver

Re: Stopping second form post if refresh is hit?

2007-07-05 Thread [EMAIL PROTECTED]
I am using HttpResponseRedirect... it still seems to allow a duplicate post though if refresh is hit on the page it's been redirected to. On Jul 5, 10:34 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 7/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > In the cases where an existing

Strange translation/encoding problem

2007-07-05 Thread spacetaxi
Hi list, my django is completely utf8-configured. I'm using I18N and my msg-ids (po-files) are utf8-encoded, too. But now I've run into a strange problem: Translation of strings containing non-ascii characters is working great in templates, but it fails if I try to translate non-ascii strings

Translate text

2007-07-05 Thread aeby
Hi all, Is there a way to translate text (and make the msgids appear in the po files) that does not appear in python source nor in templates. I try to translate text stored in the database. Thanks & Greets, Aeby --~--~-~--~~~---~--~~ You received this message

Re: Stopping second form post if refresh is hit?

2007-07-05 Thread Tim Chase
> I am using HttpResponseRedirect... it still seems to allow a > duplicate post though if refresh is hit on the page it's been > redirected to. Is this happening when a user clicks the Submit button twice before the redirect comes in (thus Django processes two requests from the same

Re: newforms: saving relations via intermediary table

2007-07-05 Thread va:patrick.kranzlmueller
solution: user_extended_profile.userextendedprofilefavourites_set.all().delete() before inserting the new related object works. Am 05.07.2007 um 15:44 schrieb va:patrick.kranzlmueller: > > I´m having trouble using newforms with an intermediary table > (although I´m not sure that my problem

Re: Strange translation/encoding problem

2007-07-05 Thread Emanuele Pucciarelli <[EMAIL PROTECTED]>
Hi, from django.utils.translation import ugettext as _ My guess is that if you import ugettext, then you should supply a Unicode string as an argument: def index(request): teststring = _(u"Lösung") [...] (notice the 'u' before the string). That works here, at least using an utf-8

Re: Pickle model fields

2007-07-05 Thread Jens Diemer
I would make a pickle field, too. I tried this: - class Preference(models.Model): ... def _get_value(self): return pickle.loads(self._value) def _set_value(self, value): self._value =

Re: YUI tags

2007-07-05 Thread Jacob Kaplan-Moss
Hi Todd -- You might find writing those "nested" template tags a bit tricky; there's a not-very-well-documented method you'll need to pull out the sub-tags. I've got an example of how you can do these types of nested tags here: http://www.djangosnippets.org/snippets/300/ Good luck! Jacob

Filtering foreignkey results with newforms form_for_model

2007-07-05 Thread [EMAIL PROTECTED]
I have an "Event" model that has a foreignkey relationship with "Club", and I'm using form_for_model to create the form. This spits out all "Club" entries in a dropdown. The trick is, "Club" has a boolean field for "approved", and I want to filter according to that. So, is there some way to

Re: No module named _md5

2007-07-05 Thread nick feng
It' seems that the md5 is not a middleware, but you have write it in the setting.py file's middleware setting part. - Original Message - From: "e-gor" <[EMAIL PROTECTED]> To: "Django users" Sent: Friday, July 06, 2007 2:59 AM Subject: No module named _md5

No module named _md5

2007-07-05 Thread e-gor
I have python 2.5.1, django report errors: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/local/lib/python2.5/site-packages/mod_python/apache.py", line 193, in Dispatch result = object(req) File

Re: No module named _md5

2007-07-05 Thread e-gor
so what should i do? :) i'm newby :) there are no md5 module requirements in the setting.py On 5 июл, 22:13, "nick feng" <[EMAIL PROTECTED]> wrote: > It' seems that the md5 is not a middleware, but you have write it in the > setting.py file's middleware setting part. > > - Original Message

Re: Stopping second form post if refresh is hit?

2007-07-05 Thread [EMAIL PROTECTED]
I'll have to check with my QA person to see exactly what they are doing. Perhaps they didn't tell me everything and they are hitting the back button... then going forward again... I've only gotten this to happen once, and had a bug on that page where I was saving twice..heh :) On Jul 5, 11:13

displaying values with SelectDateTime widget

2007-07-05 Thread Bob Dively
I'm trying to use the SelectDateTime widget but I can't figure out how to get it to correctly display a value retrieved from a database. For example: client = Client.objects.get(Client_ID=client_id) ClientForm = forms.models.form_for_instance(client) ClientForm.base_fields['Birth_Dat'].widget =

Re: displaying values with SelectDateTime widget

2007-07-05 Thread [EMAIL PROTECTED]
I take it you're using a default {{form}} view instead of outputting your own? If you output your own, it's as simple as using the |date:"" filter. On Jul 5, 3:09 pm, Bob Dively <[EMAIL PROTECTED]> wrote: > I'm trying to use the SelectDateTime widget but I can't figure out how > to get it to

--+++Does anybody have instructions to make a photo app+++--

2007-07-05 Thread Naco
Im having such a hard time transitioning from ROR to Django and I am looking for instructions to make a photo app. Can anybody help out a newby?? I been experimenting with making the app I been using the Google video that Jacob comes out in as a reference but I cant get the images to show

Re: displaying values with SelectDateTime widget

2007-07-05 Thread Bob Dively
On Jul 5, 4:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I take it you're using a default {{form}} view instead of outputting > your own? > If you output your own, it's as simple as using the |date:"" filter. It's not a formatting problem. I can't figure out how to get the correct

Re: No module named _md5

2007-07-05 Thread Horst Gutmann
e-gor wrote: > so what should i do? :) i'm newby :) there are no md5 module > requirements in the setting.py > > On 5 июл, 22:13, "nick feng" <[EMAIL PROTECTED]> wrote: >> It' seems that the md5 is not a middleware, but you have write it in the >> setting.py file's middleware setting part. >>

Re: --+++Does anybody have instructions to make a photo app+++--

2007-07-05 Thread [EMAIL PROTECTED]
Exactly what sort of photo app are you trying to build? What text is it outputting? Where are the images? On Jul 5, 3:25 pm, Naco <[EMAIL PROTECTED]> wrote: > Im having such a hard time transitioning from ROR to Django and I am > looking for instructions to make a photo app. > > Can anybody help

Re: Stopping second form post if refresh is hit?

2007-07-05 Thread Doug Van Horn
On Jul 5, 10:13 am, Tim Chase <[EMAIL PROTECTED]> wrote: > ... > To prevent this, you need to uniquely identify the page from > which it was submitted (a hash of the IP address, timestamp the > form was generated, user info, whatever) ... You might want to consider a uuid: import uuid

Re: An idea on DB migration

2007-07-05 Thread SmileyChris
If you haven't already, check out http://www.aswmc.com/dbmigration/ It's quite a good solution for migration. I've been writing a wrapper on top of that to handle auto-migration, which I'm mostly happy with. Just have to tie some loose ends and I'll put it up somewhere to share.

Re: Random string template tag

2007-07-05 Thread SmileyChris
Or you could do {{ "class1,class2,class3,class4"|split:","|random }} (you'd need to make the |split filter too, Django only comes with | join) On Jul 4, 3:21 pm, Bryan Veloso <[EMAIL PROTECTED]> wrote: > > If you want to hardcode the availability of the 'classes' variable in > > every context

Re: Cross Importing Model Problem

2007-07-05 Thread Bryan Veloso
Thanks for the help guys. Splitting the models up was mostly a cosmetic thing for the admin, but these problems quickly kicked me out of that state. Anyway, yes, the database design is really bad, mostly because that's not what the game developers are experts at unfortunately.

Re: Cross Importing Model Problem

2007-07-05 Thread Bryan Veloso
Oh also, I thought OneToOneFields were discouraged in favor of ForeignKeys with unique=True as per http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: --+++Does anybody have instructions to make a photo app+++--

2007-07-05 Thread Naco
thank you for replying so fast Well im looking for tutorials on building a simple photo app to start with i started to mess around with the following in my models.py from django.db.models import * # Create your models here. class photo(Model): image= ImageField(upload_to="photos/")

Error log interpretation

2007-07-05 Thread Vincent Nijs
Could anyone help me identify if the error message below (from apache log) might be a network/apache error or something in my Django/python code. My site is deployed using apache and mod_python. [error] [client ] PythonHandler django.core.handlers.modpython: Traceback (most recent call last):,

Re: An idea on DB migration

2007-07-05 Thread Noam Raphael
On 7/6/07, SmileyChris <[EMAIL PROTECTED]> wrote: > > If you haven't already, check out http://www.aswmc.com/dbmigration/ > > It's quite a good solution for migration. > I've been writing a wrapper on top of that to handle auto-migration, > which I'm mostly happy with. Just have to tie some loose

Re: --+++Does anybody have instructions to make a photo app+++--

2007-07-05 Thread Russell Keith-Magee
On 7/6/07, Naco <[EMAIL PROTECTED]> wrote: > Please don't use ---+++ highlighting for the subject of messages when writing to this list. Its very impolite. Yours, Russ Magee %-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: --+++Does anybody have instructions to make a photo app+++--

2007-07-05 Thread Naco
sorry didnt mean to On Jul 5, 7:07 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 7/6/07, Naco <[EMAIL PROTECTED]> wrote: > > > > Please don't use ---+++ highlighting for the subject of messages when > writing to this list. Its very impolite. > > Yours, > Russ Magee %-)

Difficulty validating ModelMultipleChoiceField

2007-07-05 Thread danylo
I can't get a form to validate and for the life of me, can't figure out why. I keep getting an error on the topics. Regardless of how many I choose, it returns an "Enter a list of values." error. It looks like even though the form returns a list of topics, it doesn't send the list to the

ubuntu 6.06 deployment issues

2007-07-05 Thread John-Scott
Hello all, I'm having some issues getting a basic django project in production mode. I'm using Ubuntu 6.06 LTS with the default versions of apache, python, mod_python, etc. - I've checked out the development version of Django in my home directory, i.e. /home/john-scott/workspace/django_src and

Re: ubuntu 6.06 deployment issues

2007-07-05 Thread Nimrod A. Abing
Hello, Your problem could be that the permissions to /home/john-scott do not allow directory traversal down into this directory for "other" users. You probably need to do: $ chmod 0755 /home/john-scott $ chmod 0755 /home/john-scott/workspace $ cd /home/john-scott/workspace $ find -type d |

Re: ubuntu 6.06 deployment issues

2007-07-05 Thread Vincent Nijs
Try adding the following in the location block: PythonPath "['/home/john-scott/workspace'] + sys.path" Vincent On 7/5/07 9:03 PM, "John-Scott" <[EMAIL PROTECTED]> wrote: > > Hello all, > > I'm having some issues getting a basic django project in production > mode. > > I'm using Ubuntu

Re: Error log interpretation

2007-07-05 Thread Graham Dumpleton
On Jul 6, 9:38 am, Vincent Nijs <[EMAIL PROTECTED]> wrote: > Could anyone help me identify if the error message below (from apache log) > might be a network/apache error or something in my Django/python code. My > site is deployed using apache and mod_python. > > [error] [client ] PythonHandler

Re: ubuntu 6.06 deployment issues

2007-07-05 Thread John-Scott
Thanks for the prompt replies. @Nimrod - You were right about the permissions on /home/john-scott/ workspace, chmod 755 fixed that. But I still have to have the django development code in /opt to get it to load. Any ideas why symlinking to /home/john-scott/workspace/django_src/django doesn't

Re: ubuntu 6.06 deployment issues

2007-07-05 Thread James Bennett
On 7/5/07, John-Scott <[EMAIL PROTECTED]> wrote: > @Nimrod - You were right about the permissions on /home/john-scott/ > workspace, chmod 755 fixed that. But I still have to have the django > development code in /opt to get it to load. Any ideas why symlinking > to

Re: YUI tags

2007-07-05 Thread Todd O'Bryan
Thanks! I'd actually thought about how to do this, but it's nice to have real code... On Thu, 2007-07-05 at 13:50 -0500, Jacob Kaplan-Moss wrote: > Hi Todd -- > > You might find writing those "nested" template tags a bit tricky; > there's a not-very-well-documented method you'll need to pull

Re: ubuntu 6.06 deployment issues

2007-07-05 Thread John-Scott
On Jul 5, 11:33 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > You want to have the 'django_src' directory linked onto your Python > path, not the 'django' directory -- the Python path should contain the > *parent* directories of any modules you want Python to be able to > find. According to

Re: ubuntu 6.06 deployment issues

2007-07-05 Thread Jeremy Dunck
On 7/5/07, John-Scott <[EMAIL PROTECTED]> wrote: > (i.e. MEDIA_ROOT, MEDIA_URL, ADMIN_MEDIA_PREFIX) are > supposed to interact with the Apache config. back to the docs... MEDIA_ROOT is used for uploads (like FileField and ImageField. MEDIA_URL should be the service URL matching MEDIA_ROOT; it is

Re: ubuntu 6.06 deployment issues

2007-07-05 Thread Graham Dumpleton
On Jul 6, 1:24 pm, John-Scott <[EMAIL PROTECTED]> wrote: > @Vincent - Is specifying the path necessary because I'm using the > development version of django and not an official installer? In the > official docs it says you only have to specify the path "if you've > manually altered your

Help with a Caching Strategy

2007-07-05 Thread Clint Ecker
In one of the applications I maintain, I use a view that takes the following inputs, crunches a lot of data from over the course of a month, and spits out a view: def month_detail(request, year, month, check=True): This could be the current month, the previous month, a month 3 years ago, etc.

Re: ubuntu 6.06 deployment issues

2007-07-05 Thread John-Scott
On Jul 6, 12:29 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Hmmm, I'm not sure the documentation is actually accurate. When you > use manage.py to run up development server for Django, it will > automatically add the parent directory of where the manage.py file is > located into sys.path

Re: Help with a Caching Strategy

2007-07-05 Thread Jeremy Dunck
On 7/5/07, Clint Ecker <[EMAIL PROTECTED]> wrote: > It would be super cool to invalidate the cache (or not) at the > moment I update the data, but it's not mission critical. How's the data updated? Need to know how to get the update info to the cache. :) > Long story short, my current

Re: ubuntu 6.06 deployment issues

2007-07-05 Thread Jeremy Dunck
On 7/5/07, John-Scott <[EMAIL PROTECTED]> wrote: > In my settings.py, I now have: > MEDIA_ROOT = '/var/www/mysite.com/media/' > MEDIA_URL = 'http://mysite.com/media/' > ADMIN_MEDIA_PREFIX = '/media/' Err, I don't have my code or settings file handy. This is the kind of thing you forget, since