according to google:
I can not understand how best to implement the definition of what a person
gone now, with mobile, and that I need to shove him to the mobile
version?
Maybe someone already implement these moments?
It's a drunk russian beat poet that's lost his or her way, just ignore them.
2010/8/27 Lachlan Musicman :
> It's a drunk russian beat poet that's lost his or her way, just ignore them.
That come out wrong on re reading. I didn't mean to offend if I did, apols.
>
> 2010/8/27 Олег Корсак :
>> English?
>>
>> 27.08.2010 04:42, Vanger - irk пишет:
>>> не могу понять, как лучше
On 08/26/2010 05:33 PM, Alan wrote:
Ops, sorry, but I don't have this line
django.middleware.csrf.CsrfViewMiddleware, as I said, it's a project
done in 1.0.2. and I want it to run on my django 1.2 but without any
reference to Csrf, since the server where the portal is runs 1.0.2
yet.
You could
On 08/26/2010 07:08 PM, Alessandro Ronchi wrote:
Is this middleware classes correctly ordered for performance?
thanks in advance,
MIDDLEWARE_CLASSES = (
"django.middleware.common.CommonMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.locale.LocaleMiddlewa
On 08/26/2010 09:11 PM, Bradley Hintze wrote:
Got it!
You're keeping us all in suspense :-)
Next time, could you add a one-line summary of the eventual solution?
There will be people with similar problems that google your post in
2012. They'll want more than a "got it" :-)
Reinout
--
Re
On 08/27/2010 08:58 AM, Karim Gorjux wrote:
My doubt is in these 3 variables. How I have to use they?
MEDIA_ROOT = ''
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'
A bit of copy/paste from my settings.py:
# Absolute path to the directory that holds user-uploaded media.
MEDIA_ROOT = '/path/to
On 27 août, 08:58, Karim Gorjux wrote:
> As I read herehttp://docs.djangoproject.com/en/dev/howto/static-files/I
> configure the settings.py and the urls.py to load a template in runserver.
>
> ## urls.py ##
>
> from django.conf import settings
>
> [...]
>
> (r'^media/(?P.*)$', 'django.views.s
On Fri, Aug 27, 2010 at 10:57, bruno desthuilliers <
bruno.desthuilli...@gmail.com> wrote:
>
>
Thanks a lot for all your advices. I work a lot on settings.py and now is
more professional. The mistake was in
ADMIN_MEDIA_PREFIX = '/media/'
I changed it in
ADMIN_MEDIA_PREFIX = '/admin-media/'
And
On 8/27/2010 3:41 AM, Reinout van Rees wrote:
> On 08/26/2010 09:11 PM, Bradley Hintze wrote:
>> Got it!
>
> You're keeping us all in suspense :-)
>
> Next time, could you add a one-line summary of the eventual solution?
> There will be people with similar problems that google your post in
> 2012
In this presentation save() is described as not thread-safe and
update() is recommended to be used instead of save():
http://www.slideshare.net/zeeg/db-tips-tricks-django-meetup (page
2, 3, 4)
Is it true that save() is not thread-safe? How is it not? Should I
avoid using save() and use updat
Hi,
I'm trying to have multiple configuration files for my project as
described in http://www.djangobook.com/en/2.0/chapter12/.
I always get the following when issuing administrative commands (for
example):
# ./manage.py --settings=harmony.settings_dev syncdb
Unknown command: '--settings'
Type '
Hi everyone,
I'm new to GeoDjango. After installing it and test it. I have created
a model called Spot which gas a Geography SRID 4326 PointField.
class Spot(models.Model):
point = models.PointField(spatial_index = True,
srid = 4326,
geo
2010/8/27 Reinout van Rees
>
> I don't know about performance, but at least the GZipMiddleware
> documentation says it has to be right at the top to prevent errors. It
> mucks about with the content-length, that's why.
>
So, I should put it before commonMiddleware?
> By the way: have you alre
Thanks João, indeed, after reading the link, what I needed was to
*add* it. So now I have:
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.
On Thu, Aug 26, 2010 at 11:09 PM, The Boss wrote:
> This should really be much easier.
I generally do something like:
class OrderForm(ModelForm):
def __init__(self, *args, **kw):
ordernumber = '%06d' % kw.pop('ordernumber', 0)
super(OrderForm, self).__init__(*args, **kw)
After 3 days trying to solve this, I found that geopy returns
latitude/longitude and GEOS expects coordinates in reversed order. This
fixes my issue with the maps.
Thanks though,
Miguel Araujo
2010/8/27 maraujop
> Hi everyone,
>
> I'm new to GeoDjango. After installing it and test it. I have cr
On 27 août, 10:24, Karim Gorjux wrote:
> On Fri, Aug 27, 2010 at 10:57, bruno desthuilliers <
>
> bruno.desthuilli...@gmail.com> wrote:
>
> Thanks a lot for all your advices. I work a lot on settings.py and now is
> more professional. The mistake was in
>
> ADMIN_MEDIA_PREFIX = '/media/'
>
> I cha
On Fri, Aug 27, 2010 at 5:07 AM, Andy wrote:
> In this presentation save() is described as not thread-safe and
> update() is recommended to be used instead of save():
>
> http://www.slideshare.net/zeeg/db-tips-tricks-django-meetup (page
> 2, 3, 4)
>
> Is it true that save() is not thread-saf
Question was: how to determine that user comes from mobile phone to show him
mobile version of site. May be by parsing user agent. (for example
http://en.wikipedia.org/wiki/List_of_user_agents_for_mobile_phones)
2010/8/27 Lachlan Musicman
> That come out wrong on re reading. I didn't mean to off
On 27 août, 05:51, bluearth wrote:
> Hi,
>
> I'm trying to have multiple configuration files for my project as
> described inhttp://www.djangobook.com/en/2.0/chapter12/.
>
> I always get the following when issuing administrative commands (for
> example):
>
> # ./manage.py --settings=harmony.settin
according documentation
http://docs.djangoproject.com/en/dev/ref/django-admin/?from=olddocs
Generally, when working on a single Django project, it’s easier to use
manage.py. Use django-admin.py with DJANGO_SETTINGS_MODULE, or the
--settings command line option, if you need to switch between multipl
I've looked at http://www.djangobook.com/en/beta/chapter12/ and the
section on Using sessions outside of views which shows:
>>> from django.contrib.sessions.models import Session
>>> s =
Session.objects.get_object(pk='2b1189a188b44ad18c35e113ac6ceead')
But where does that pk come from?
I'm down
On 08/27/2010 12:43 PM, Alessandro Ronchi wrote:
2010/8/27 Reinout van Rees mailto:rein...@vanrees.org>>
I don't know about performance, but at least the GZipMiddleware
documentation says it has to be right at the top to prevent errors.
It mucks about with the content-length, th
Hi!
I have 2 models in my program, and I like to refer to one of them withou
getting the object "manually".
As I have writted them, I can do curl -F languages="es, en, it" and then the
get_languages method split by comma and get the objects, but... can I
directly send from the API the correct lan
Figured it out. But still 'gr!'
So whenever I change a file and save it the stupid computer
automatically changes ownership back to me instead of keeping www as
owner. Thus apache couldn't 'see' my ne settings. As admin being the
group with read/write permissions I thought that I could change
On 27/08/10 14:22, Sells, Fred wrote:
> I'm not sure of the thread safety of Django and wonder if I could store
> this object as a local variable of some module like
No, that is not likely to work except in a single-threaded* context, and
even then it's a bit fraught (just being single-threaded s
>From what I can tell in the documentation, a post_save signal only
passes sender, instance, created, and using. I would love to use this
signal to update information in the instance, such as the datetime of
when it was saved. This would be fine, except that I want to also
keep track of the user
LOL and grr,
I wish I had posted my solution. I'm getting the same error,
TemplateDoesNotExist. I look at my settings for my template directory,
look in that directory and there is the template that it says does not
exist! Very frustrating! I did move my directory but (thought) I
changed all t
On 8/27/2010 11:46 AM, Bradley Hintze wrote:
>> Figured it out. But still 'gr!'
>>
>> So whenever I change a file and save it the stupid computer
>> automatically changes ownership back to me instead of keeping www
>> as owner. Thus apache couldn't 'see' my ne settings. As admin being
>> the
Hello,
I created a simple Django model based on some database view. It looks
like that:
class Person(models.Model):
name = models.CharField(max_length=200)
class Meta:
db_table = 'bambo_person_view'
In my database (Postgresql) I created this view and I gave it rule
On Aug 26, 2010, at 9:31 PM, nobosh wrote:
> Hello, I'm on day 7 learning Django and would appreciate any info
> around getting my Django app started with a Registration/Authorization
> which is Email & Password based (not username). I'll don't currently
> have a need for usernames. Is there an a
Hi friends,
My django application runs in red hat server with apache &
mod_wsgi. We have several request which interacts with
database(postgresql), so database interaction is huge. i found that
every time django application establishing a new connection to
interact with DB. So my server hangin
I want to add my images on sitemap objects:
http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=178636
is it possible with sitemap framework?
how?
--
Alessandro Ronchi
http://www.soasi.com
Hobby & Giochi
http://hobbygiochi.com
http://www.facebook.com/hobbygiochi
--
You receive
Ok, I hope I can explain my problem coherently :).
In development I ran my web app fine. I have now put it in production
(configured and running on apache). In my views.py file I passed
global variables between different functions (views) beautifully
during development (manage.py runserver). Howev
On 8/27/2010 2:07 PM, Bradley Hintze wrote:
> Ok, I hope I can explain my problem coherently :).
>
> In development I ran my web app fine. I have now put it in production
> (configured and running on apache). In my views.py file I passed
> global variables between different functions (views) beaut
hi,
when i write the command at the time of creating a new directory for
starting a project with the command:
-> django-admin.py startproject mysite
It shows me an error of the core module 's unavailability,
->Traceback (most recent call last):
File "/usr/bin/django-admin.py", line 2,
bmp
On Aug 26, 8:14 pm, Joel Klabo wrote:
> Could someone just show me how theirs is set up?
>
> On Aug 26, 4:54 pm, Joel Klabo wrote:
>
>
>
>
>
>
>
> > It does have __init__.py, but not the server isn't seeing it... '500
> > internal server error'
>
> > On Aug 26, 4:48 pm, Kenneth Gonsalves wr
I've using django-registration to do that...
class RegistrationFormTOSAndUniqueEmail(RegistrationFormTermsOfService,
RegistrationFormUniqueEmail):
def __init__(self, *args, **kwargs):
super(RegistrationFormTOSAndUniqueEmail, self).__init__(*args, **kwargs)
def clean_email(self):
2010/8/27 lakshay pushkarna
> hi,
>
> when i write the command at the time of creating a new directory for
> starting a project with the command:
> -> django-admin.py startproject mysite
>
> It shows me an error of the core module 's unavailability,
>
> ->Traceback (most recent call last)
Hi,
just a suggestion; try a different web-server system, like (uWSGI,
gunicorn)+nginx,
then if you haven't already, do everything on this wiki
http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
see if that helps.
On Fri, Aug 27, 2010 at 8:17 PM, jai_python wrote:
> Hi friends,
>
I have /usr/local/lib/python2.6/site-packages in my sys.path. i
symlinked the django-admin.py from the django-trunk directory , how
else should i put it into the python path
thanks
On Sat, Aug 28, 2010 at 12:04 AM, Simone Dalla wrote:
>
>
> 2010/8/27 lakshay pushkarna
>
> hi,
>>
>> when i wr
On Aug 27, 2010, at 1:17 PM, jai_python wrote:
> Hi friends,
>My django application runs in red hat server with apache &
> mod_wsgi. We have several request which interacts with
> database(postgresql), so database interaction is huge. i found that
> every time django application establishing
was doing the sym-linking incorrectly, re-did it , now its working :)
thanks
regards lakshay
On Sat, Aug 28, 2010 at 12:16 AM, lakshay pushkarna <
lakshaypushkarn...@gmail.com> wrote:
> I have /usr/local/lib/python2.6/site-packages in my sys.path. i symlinked the
> django-admin.py from the dja
I'm loading django onto Windows XP professional with Apache.
Unfortunately, I need mod_python which only works with python 2.3.
Django needs python 2.4 and above. Is there a way around this?
Thx
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
I have a site, trendero.com, built using Django and hosted with
RackSpace on its own server. To reduce costs, I'd like to switch the
hosting to App Engine, but I'm not a technical guy (had the site built
using contractors).
I practiced corporate law for four years at a well-known Silicon
Valley bo
Thanks Alexandre, I also found this one:
http://github.com/redvasily/django-emailauth
Given I'm a newbie, which path do you recommend I pursue?
On Aug 27, 11:33 am, Alexandre González wrote:
> I've using django-registration to do that...
>
> class RegistrationFormTOSAndUniqueEmail(RegistrationF
I ran python setup.py install to install an emailauth app as Im
working to create an auth that is email/password based.
http://github.com/redvasily/django-emailauth
I'm still working to get it installed and working, and would like to
uninstall the module because when I create a project and go to
On Fri, Aug 27, 2010 at 3:31 PM, nobosh wrote:
> I ran python setup.py install to install an emailauth app as Im
> working to create an auth that is email/password based.
>
> http://github.com/redvasily/django-emailauth
>
> I'm still working to get it installed and working, and would like to
> uni
On 8/27/2010 3:21 PM, Jesse wrote:
> I'm loading django onto Windows XP professional with Apache.
> Unfortunately, I need mod_python which only works with python 2.3.
> Django needs python 2.4 and above. Is there a way around this?
> Thx
>
Stop needing mod_python? It's obsolete now.
regards
Ste
On Fri, Aug 27, 2010 at 1:47 PM, Trendero.com
wrote:
> I have a site, trendero.com, built using Django and hosted with
> RackSpace on its own server. To reduce costs, I'd like to switch the
> hosting to App Engine, but I'm not a technical guy (had the site built
> using contractors).
just one adv
Just playing around with some ideas, I've been trying to figure
out how to auto-generate some menus based on my url.py config layout.
1) what's the preferred way to get the "base" (rather than
include()'ed) urls.py I see a core.urlresolvers.get_urlconf but
that seems an internal piece of mach
Do I not need it to run Apache on Windows with Django? Or what is the
alternative? This is the 5th server I've set up and I've always used
mod_python until now. How do I get past this mod_python step?
Jesse
On Aug 27, 2:16 pm, Steve Holden wrote:
> On 8/27/2010 3:21 PM, Jesse wrote:> I'm loadi
I'm trying to load django/python 27/apache onto Windows XP. I'm
following the instructions that recommends mod_python. Mod_python is
no longer available. What is it's replacement? Will apache work
without it?
Jesse
--
You received this message because you are subscribed to the Google Groups
On Fri, 2010-08-27 at 16:35 -0700, Jesse wrote:
> I'm trying to load django/python 27/apache onto Windows XP. I'm
> following the instructions that recommends mod_python. Mod_python is
> no longer available. What is it's replacement? Will apache work
> without it?
mod_wsgi has practically rep
On 08/28/2010 01:35 AM, Jesse wrote:
I'm trying to load django/python 27/apache onto Windows XP. I'm
following the instructions that recommends mod_python. Mod_python is
no longer available. What is it's replacement? Will apache work
without it?
mod_wsgi.
(wsgi = web service gateway interf
I just had my syncdb in django stop working, where it won't update any
changes I make to any of my models. When I run it in the terminal it
doesn't give any output just instantly returns a new terminal input
line (meaning it ran through the script but didn't do anything I guess
would be the way to
On 8/27/2010 8:37 PM, Rick wrote:
> I just had my syncdb in django stop working, where it won't update any
> changes I make to any of my models. When I run it in the terminal it
> doesn't give any output just instantly returns a new terminal input
> line (meaning it ran through the script but didn'
I have been able to get my database queries to work properly for
deleting existing entries and also adding new entries to the database
but I am completely stumped as to why I am unable to retrieve anything
from my database. I am trying a query such as:
from web1.polls.models import Poll
retquery =
thanks, yeah I realized that after posting which is why I deleted the
question, I should've researched a bit more before posting
On Aug 27, 5:45 pm, Steve Holden wrote:
> On 8/27/2010 8:37 PM, Rick wrote:> I just had my syncdb in django stop
> working, where it won't update any
> > changes I mak
Hi,
does anyone know a way of filtering a QuerySet by a field that was
added through the extra() method?
For example, this is what I would like to do
_list_items = ListItem.objects.filter(list=1).extra(select='SELECT
value AS "type" FROM list_item_optional WHERE
list_item_optional.list_optional_
On Sat, Aug 28, 2010 at 7:27 AM, Jesse wrote:
> Do I not need it to run Apache on Windows with Django? Or what is the
> alternative? This is the 5th server I've set up and I've always used
> mod_python until now. How do I get past this mod_python step?
Seriously - the answer is to stop using m
Hi!
I'm planning to deploy my first django application and I think it will
have more reads than writes and at least 1 requests a day. So I
will take care about the system cache. I think FreeBSD(my prefered OS)
would do the job, but I heard good things about Amazon EC2 and I would
like to know
All the files are shown here: http://gist.github.com/554724
I don't know what I'm doing wrong but I'm still getting 500
--
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...@googlegroups.com.
To unsub
This is my situation: http://gist.github.com/554724
I am getting 500 internal server error, don't know what's up...
I would appreciate any info, I'm a total apache noob.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
problem solved for the time being, I needed to add quotes around the
'settings'
On Aug 27, 10:08 pm, Joel Klabo wrote:
> This is my situation:http://gist.github.com/554724
>
> I am getting 500 internal server error, don't know what's up...
>
> I would appreciate any info, I'm a total apache noob.
On Fri, 2010-08-27 at 21:48 -0700, Joel Klabo wrote:
> All the files are shown here: http://gist.github.com/554724
>
> I don't know what I'm doing wrong but I'm still getting 500
maybe you could try:
sys.path.append('/srv/www/brooski.net/')
os.environ['PYTHON_EGG_CACHE'] = '/srv/www/brooski.n
On Aug 28, 2:48 pm, Joel Klabo wrote:
> All the files are shown here:http://gist.github.com/554724
>
> I don't know what I'm doing wrong but I'm still getting 500
Go look in the Apache error log for the reason for the error and post
that here.
Better still, go watch the mod_wsgi presentation l
67 matches
Mail list logo