>
> That isn't exactly mod_wsgi's fault. You should go have a read of:
>
> http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html
>
> some time and then you might understand the horrible things that the
> development server does with paths.
>
> :-)
>
Yes, I didn't state it's mod
Hi,
More a Python thing, than Django.
You should never put custom code in the django package.
Generally you can put SWFUploadMiddleware inside, say, middleware.py in the
same directory as your settings.py.
Then you'd have to put:
'yourprojectname.middleware.SWFUploadMiddleware'
Once you unders
sudo apt-get install python-django
> will install django in kubuntu (10.10 at least, and I think earlier).
>
Hi,
You should be also able to do:
sudo pip install Django --upgrade
which would do a system-wide installation or upgrade of newest Django
available in PyPI (ie. 1.2.4).
I prefer pip ov
Hi,
> upload_to can be a callable, ie a function that handles the uploaded file.
> This is passed the image file and original filename, and should return the
> absolute path. See the documentation:
>
> http://docs.djangoproject.com/en/1.2/ref/models/fields/#django.db.models.FileField.upload_to
>
Hi,
2011/1/12 gupta-django
> I have two application
>
> 1. App1 - It has a Model Class "Entry" that has 20 entries
> 2. App2 - It has a Model Class "Priority"
>
> In Priority class I am defining a Foreign Key Relationship as
>
> from App1.models import Entry
>
> class Priority(models.Model):
Hi,
2011/1/12 nlub...@gmail.com
>
> if im uploading a "testofimage.gif"
> i would like to save it as "Profileoduser.gif"
>
I think you can code your own field that inherit's from imagefield.
You possibly could also modify the save method and rename the file/image
field raw value there (just be
Hi again,
Johnny-cache http://packages.python.org/johnny-cache/ is very good at
caching repetitive queries, however I had to disable it in my most-recent
project because of a bug in admin...
Other options are low-level cache (in case of context processor - cache only
the QuerySet) or template fra
Hi,
I have a block, included into several pages (for example, in all
> sections of my website you can see top rated articles in the right
> column). I can include a template, that prints this list into base
> template and avoid any copy-paste here.
> But I need to provide it with context variable,
Hi,
> I'm using virtualenv with --no-site-packages and now I like to do a
> deployment of my app... I'm using a sharing hosting, can I uypload all my
> enviroment dir (with the packages installed with pip) to the server and use
> them?
>
That won't necessarily work. Some packages need to be comp
> I like Merengue CMS, a Django based CMS with steroids, but some of
> the steroids are non free software.
>
> http://www.merengueproject.org/
>
Wow, looks promising.
I'll have to try it out myself. Thanx :)
Regards,
Piotr
--
You received this message because you are subscribed to the Google
>
> I would welcome comments on what CMS is compatible with django.
>>
>
> You might look at LFC: http://www.lfcproject.com
Hi,
Noone mentioned http://www.feinheit.ch/labs/feincms-django-cms/ yet, it
might be nice and more stable than DjangoCMS.
But you can live with DjangoCMS (use latest maste
2010/10/26 Tom Evans
> I'm curious, why can't I talk you into
> Student.objects.all().order_by('-score')[0] ?
>
> It is clearly a superior query :/
>
This would select only one row; there can possibly be multiple students with
a top note.
Am I right? :)
Regards,
Piotr
--
You received this me
Hi Alex,
2010/10/25 Alex
> File "admin_modify.py" method "def prepopulated_fields_js(context)"
> Line 11:
>
> if context['add'] and 'adminform' in context:
>
> should be changed to
>
> if 'adminform' in context:
>
> to allow slug be auto updated every time and not only on the entity
> creation i
2010/9/27 Josh :
> bump. Does anyone have any ideas?
Trailing slash issue?
Just look into the middleware and see when the response code is modified.
Regards,
Piotr
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
>> Wouldn't simply {% if application in resut %} display sth {% endif %} work?
>>
>> Regards,
>> Piotr
>
> Well there's always the issue that it's not a wordwise test, so you could
> have "applicationeering" in your result and it would still match.
True :)
Regards,
Piotr
--
You received this m
Hi,
> eg. I have test.html and I am passing {resut : 'test application for
> test'}
> now I want to check if the world application is there on not in
> result.
>
> Please suggest the simplest method without using filter. or somthing
> similar to slice
Wouldn't simply {% if application in resut %}
> I do have it on the sys.path in django.wsgi, here it is:
>
> import os
> import sys
> sys.path.append('/Users/bradleyhintze/djcode')
> sys.path.append('/Users/bradleyhintze/djcode/MolProbity_Compare_test')
Seems like it is somehow not there - is settings.py inside
/Users/bradleyhintze/djcode/Mol
Hi,
If you need to debug, set DEBUG to True, obviously...
Second thing - what is your TEMPLATE_DIRS and TEMPLATE_LOADERS setting?
Regards,
Piotr
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...
> Installed /Library/Python/2.6/site-packages/django_sorting-0.1-
> py2.6.egg
> Processing dependencies for django-sorting
> (just specifying 'django-sorting', in installed apps in settings file)
Are you sure it should be 'django-sorting' not 'django_sorting' (with
underscore)?
- is a minus in py
Hi,
> Is it possible to mix static and dynamic content in the same directory
> using django?
Yes :) At least as far as I understand your goal.
Basic urlconf stuff - matter of order.
P.S. Don't think about URLs as directories.
Regards,
Piotr
--
You received this message because you are subsc
Hi,
As far as I know, http://grono.net was built using Django. At once it
was Polish biggest community portal which recently probably lost much
traffic in favor of the Nasza Klasa crap ;)
Regards,
Piotr
--
You received this message because you are subscribed to the Google Groups
"Django users"
21 matches
Mail list logo