Re: New Guide to Django install on fresh VPS

2009-12-22 Thread LarryEitel
Some recommended to include the tools mentioned here: http://clemesha.org/blog/2009/jul/05/modern-python-hacker-tools-virtualenv-fabric-pip/ ie, pip, virtualenv and fabric. I will spec these out tomorrow. -- You received this message because you are subscribed to the Google Groups "Django

Re: New Guide to Django install on fresh VPS

2009-12-22 Thread LarryEitel
Thank you I will take a look at that. In either case, I had to move my notes to a new location: http://www.evernote.com/pub/larryeitel/techlinux#v=l=02179b55-4c75-4081-ba8b-1d478ac6c19b=8dd23aa5-cf80-4017-b7a4-36cb7b526c89 Thank you :) -- You received this message because you are subscribed to

Generic Inlines in Admin - Causes Parent model to disappear in Admin

2009-12-22 Thread Victor Hooi
heya, I have an address object, which is setup as a generic relation. class Address(models.Model): street_address = models.CharField(max_length=50) ... (etc.) content_type = models.ForeignKey(ContentType) object_id = models.PositiveIntegerField()

Re: Enable users to input formatted text

2009-12-22 Thread Gabriel Farrell
If you have any trouble with tinymce look at Markdown in django.contrib.markup, especially with the "safe" extension. Nice lightweight solution. On Mon, Dec 21, 2009 at 6:22 PM, Continuation wrote: > django-tinymce looks like is what I need. > > Thanks for pointing me

debugging cache

2009-12-22 Thread Eric Abrahamsen
Hi, I noticed a while ago that my cache wasn't doing anything – I'm using memcached with the cache_page decorator, and it simply wasn't caching views. I've verified that memcached is running, and my settings.py file is pointed at the right address. Here are my relevant settings:

Re: New Guide to Django install on fresh VPS

2009-12-22 Thread Christophe Pettus
You might take a look at: http://thebuild.com/blog/2009/10/16/wordpress-to-djangopostgresql-part-1-installing-postgresql/ Feel free to borrow what you'd like. On Dec 22, 2009, at 6:05 PM, LarryEitel wrote: > I am creating a step-by-step guide to build out a fresh VPS with > production

Re: Hosting for django?

2009-12-22 Thread Donna Snow
Yes, WebFaction was formerly python-hosting.org - used them when they were python-hosting and continue to use them. Good team of guys and they've been around a long time..don't see them going anywhere anytime soon. Great for shared, haven't tried them for the VPS Best Regards, Donna 'SnowWrite'

New Guide to Django install on fresh VPS

2009-12-22 Thread LarryEitel
I am creating a step-by-step guide to build out a fresh VPS with production stack for Django. It is on a Wiki at: http://is.gd/5xZ3g I have more details to fill in. I am motivated by a need to build out a production server for a port of a PHP site (http:biblize.com) to Django. If anyone would

Re: Hosting for django?

2009-12-22 Thread diogobaeder
+1 for WebFaction, too. Best hosting service I've ever hosted into. Diogo On 22 dez, 16:59, yummy_droid wrote: > Hi, > > Has anyone had good experiences with hosting companies that I can use > for production django apps, with backups, etc.? > > I would also want to add some

Re: Trying to delete uploaded images (SuspiciousOperation)

2009-12-22 Thread Peter Rowell
Did you see my response to this question on SO? http://stackoverflow.com/questions/1950069/suspicious-operation-django/1950178#1950178 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

django hosting

2009-12-22 Thread WildDave
I use Hostgator.com. They posted the following about django: Django with fastcgi Django can be installed on a shared environment if you use FastCGI with it. Note: You will need the FLUP module for Python 2.4 to run FastCGI, and you will need the pysqlite2 module to run SQLite3. In your

Trying to delete uploaded images (SuspiciousOperation)

2009-12-22 Thread tsop
Hello, I've been running into a problem while trying to delete uploaded images. The error I get is: SuspiciousOperation: Attempted access to '/media/artists/12-stones/ 154339.jpg' denied. After reading around it looks like the error is due to the fact that it's looking for the image in the

Re: Hosting for django?

2009-12-22 Thread John M
There was recently a blog on several of the VPS's, EC2 scored a very poor last place, while LiNode scored the best. You can find it on the djangoproject community link. J On Dec 22, 10:59 am, yummy_droid wrote: > Hi, > > Has anyone had good experiences with hosting companies

Re: Clickable url in the admin

2009-12-22 Thread rebus_
2009/12/22 Zeynel : > Thank you. Can you give me more detailed instructions about how to do > this? I couldn't parse the referenced section of the documentation. > How do I create the method "to generate anchor?" Where does the > "method name" go in the admin.py? > > Thanks

Re: MySQLdb module for Python 2.5 on Windows XP

2009-12-22 Thread ericvb
Can you point to that thread please? I've searched but can't find it. -- 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 unsubscribe from this group, send email to

Re: Running multiple versions of Django on the same machine

2009-12-22 Thread Shawn Milochik
Use virtualenv. All the cool kids are doing it. You will love it -- it does what you want and more, and I use it on my Mac with no worries. Shawn Sent from my iPhone On Dec 22, 2009, at 6:42 PM, Alex Fink wrote: > Hi all, > > I'm developing for several different

Running multiple versions of Django on the same machine

2009-12-22 Thread Alex Fink
Hi all, I'm developing for several different Django projects, one of which has yet to move from Django 1.0 to 1.1. I'd like to move some of the projects to 1.1, but keep one of the projects on 1.0. Maybe this is easy to do, but I didn't know the right search terms to figure out what I'm

Re: Django-mod_python taking time loading libraries

2009-12-22 Thread Graham Dumpleton
Answered in reply to your mod_python mailing list post. http://www.modpython.org/pipermail/mod_python/2009-December/026415.html Graham On Dec 22, 9:45 pm, bharath wrote: > Hi, > >     Django is taking time loading libraries . I am using python  open > source libraries

Re: Hosting for django?

2009-12-22 Thread James Bennett
On Tue, Dec 22, 2009 at 12:59 PM, yummy_droid wrote: > Has anyone had good experiences with hosting companies that I can use > for production django apps, with backups, etc.? http://djangofriendly.com/hosts/ -- "Bureaucrat Conrad, you are technically correct -- the best kind

Re: Adding models during testing (aka working around #7835)

2009-12-22 Thread Peter Baumgartner
On Tue, Dec 22, 2009 at 1:34 PM, Peter Baumgartner wrote: > I'm trying to use the suggestion here[1] for adding models during test > suite runs. While it works great in sqlite, I'm not having any luck > getting it to run in Postgres because it doesn't seem to build all the >

Re: Hosting for django?

2009-12-22 Thread Wiiboy
Webfaction, for my small site, is spectacular. Their CP is awesome (I think it's their own, not another piece of software from someone else), and they are totally Python/Django oriented (they used to be called python-hosting I think). -- You received this message because you are subscribed

Re: Testing and request META data

2009-12-22 Thread Phlip
> >>> c = Client() > >>> c.get('/customers/details/', {'name': 'fred', 'age': 7}, > > ...       HTTP_X_REQUESTED_WITH='XMLHttpRequest') Thanks! Now how do I test an action that must use SSL? (I want a 304 bounce message if the user tries to use plain text.) I couldn't find a HTTPS or similar

Re: Best way to keep populating database after creation?

2009-12-22 Thread Kevin L
I should've Googled before speaking. According to http://stackoverflow.com/questions/1499898/django-create-fixtures-without-specifying-a-primary-key by using "pk: null" in fixtures, the primary key will be automatically assigned when saving the object. Great! I'll still do some benchmarking for

Re: Best way to keep populating database after creation?

2009-12-22 Thread Kevin L
Ahh, I had seen that earlier but disregarded it because it pertained to CSV files. I see and am reminded now that I can import my project or app into a python script. My models won't be changing which would seem to make a good case for fixtures, but at least this way I don't need to worry about

Re: Clickable url in the admin

2009-12-22 Thread Zeynel
Thank you. Can you give me more detailed instructions about how to do this? I couldn't parse the referenced section of the documentation. How do I create the method "to generate anchor?" Where does the "method name" go in the admin.py? Thanks again. On Dec 14, 6:41 pm, rebus_

Re: pass to a template many querysets

2009-12-22 Thread Francesco Benincasa
* martedì 22 dicembre 2009, alle 15:40, Łukasz Balcerzak scrive: > Well, I'm not sure then. Tried debug queries? > Use django-logging or Djalog and add catching/printing queries middleware, > you should spot the point where something is going wrong... Found! here:

Re: Best way to keep populating database after creation?

2009-12-22 Thread Shawn Milochik
Well, the data loaded by fixtures will remain, so if you need to add new data you'll just have to create and load a fixture with the new data. It's easy to convert data to JSON or whatever, especially if your input isn't going to change. However, it seems like maybe you want something else

Re: Hosting for django?

2009-12-22 Thread gregory.para...@gmail.com
I've been using Webfaction for awhile now and it works great. On Dec 22, 3:04 pm, brad wrote: > > Has anyone had good experiences with hosting companies that I can use > > for production django apps, with backups, etc.? > > If you're comfortable administering a linux box,

Adding models during testing (aka working around #7835)

2009-12-22 Thread Peter Baumgartner
I'm trying to use the suggestion here[1] for adding models during test suite runs. While it works great in sqlite, I'm not having any luck getting it to run in Postgres because it doesn't seem to build all the necessary database relations. (ProgrammingError: relation "fakeapp_fakeitem" does not

Re: caching options

2009-12-22 Thread Javier Guerra
On Tue, Dec 22, 2009 at 3:14 PM, Victor Loureiro Lima wrote: > You can purge the cache whenever you need and update it accordingly. another strategy is to use the most volatile data as part of the cache key. that would ensure that new data would ask for inexistent

Re: caching options

2009-12-22 Thread Victor Loureiro Lima
You can purge the cache whenever you need and update it accordingly. You would then have a granular cache system ( or low-level cache ). You would have to update the cache whenever the object it self is updated... Pretty common actually.. Victor Lima 2009/12/22 Continuation

Re: Custom Django-Admin commands

2009-12-22 Thread Justin Steward
On Tue, Dec 22, 2009 at 3:24 PM, Bill Freeman wrote: > If you are calling this from, for example, crontab note that each line > in crontab is executed in its own subshell, so you have the choice of > setting PYTHONPATH, or (my personal favorite because it works with so > many

Re: Best way to keep populating database after creation?

2009-12-22 Thread Kevin L
Hi Shawn, I had already looked at fixtures and the reason I disregarded it is because the documentation says: "Every time you run loaddata the data will be read from the fixture and re-loaded into the database. Note that this means that if you change one of the rows created by a fixture and then

Re: Hosting for django?

2009-12-22 Thread brad
> Has anyone had good experiences with hosting companies that I can use > for production django apps, with backups, etc.? If you're comfortable administering a linux box, I'd highly suggest Linode (http://www.linode.com/). Their service has been great for me. -- You received this message

Re: Hosting for django?

2009-12-22 Thread creecode
Amazon EC2 and S3 +1 On Dec 22, 11:08 am, Victor Loureiro Lima wrote: > Amazon's Cloud Computing is wonderful, its currently hosting our django > website. > Media Temple is also a good option. -- You received this message because you are subscribed to the Google

caching options

2009-12-22 Thread Continuation
I looked at the doc and it seems that django's caching system is based on time - you have to define how long a cached page or view will live. For my case (and for a lot of people I'd imagine) that wouldn't work. For example in generating an inox list list or "how many new messages you have"

Re: LDAP-groups problem

2009-12-22 Thread Peter Herndon
On Dec 22, 2009, at 10:40 AM, Wayne wrote: > Thanks for the prompt reply. Yes, unique=True was the problem. Now I > passed the "run syncdb" and new tables were created. However, I still > could not "contact LDAP". Could somebody help me with this? That would be me. > > Thanks! > > My

Re: Best way to keep populating database after creation?

2009-12-22 Thread Hinnack
you could use a migration tool like this: http://south.aeracode.org/ and do some data migration... -- Hinnack 2009/12/22 Kevin L > Hi, could anyone offer some tips as to the best way to keep populating > my Django database after it's finalized (schema-/model-wise)? The

get_absolute_url not recognized

2009-12-22 Thread neridaj
I'm trying to add a get_absolute_url method to a Tweet model from django-syncr and do not understand why the method is not recognized. class Tweet(models.Model): pub_time= models.DateTimeField() twitter_id = models.PositiveIntegerField() text= models.TextField() user

Re: Hosting for django?

2009-12-22 Thread neridaj
I was on Dreamhost for a while but once I needed to install 3rd party modules I ran into problems. I've since switched to Slicehost VPS - http://www.slicehost.com/ and would definitely recommend them. If I was going with shared hosting I would probably use Webfaction - http://www.webfaction.com/

Re: Best way to keep populating database after creation?

2009-12-22 Thread Shawn Milochik
Fixtures sound like the way to go. You should get what you need from here: http://docs.djangoproject.com/en/dev/howto/initial-data/ Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Hosting for django?

2009-12-22 Thread Victor Loureiro Lima
Amazon's Cloud Computing is wonderful, its currently hosting our django website. Media Temple is also a good option. att, victor lima 2009/12/22 yummy_droid > Hi, > > Has anyone had good experiences with hosting companies that I can use > for production django apps, with

Correct way to assing Images to ImageField field

2009-12-22 Thread Victor Loureiro Lima
Hello, here is my model: Class Photo( models.Model ): photo = models.ImageField( upload_to="mydir/" ) This class is going to be used to save Images in a gallery that are uploaded thru a zip file, so first I verify if the zip file is valid, then I extract all of the files to a gallery

Re: cache optimization

2009-12-22 Thread Leonel Nunez
> instead of apache lets use NGINX .. great :) > or cherokee saludos .. Leonel -- 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 unsubscribe from this group, send email to

Hosting for django?

2009-12-22 Thread yummy_droid
Hi, Has anyone had good experiences with hosting companies that I can use for production django apps, with backups, etc.? I would also want to add some extensions etc. as well (e.g. matplotlib, reportlab, etc.). Anyone use godaddy? Thanks. -- You received this message because you are

Best way to keep populating database after creation?

2009-12-22 Thread Kevin L
Hi, could anyone offer some tips as to the best way to keep populating my Django database after it's finalized (schema-/model-wise)? The app is most read-only and periodically, I finish up a new data set that needs to be included. How do I add this additional data set into the database without

Re: cache optimization

2009-12-22 Thread Gaffar Overcomes
instead of apache lets use NGINX .. great :) On Tue, Dec 22, 2009 at 5:08 PM, Victor Loureiro Lima < victorloureirol...@gmail.com> wrote: > We use django for a project in my company, and by using memcached and a few > db_index on the correct fields of my models, I was able to go from 3 request >

How to Add custom sql ( for example 'select myfunc(1)' ) for everyone SQL query ?

2009-12-22 Thread Bdfy
In Catalyst it was " { on_connect_do => [ ' select myfunc(1); ' ] }" ? -- 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 unsubscribe from this group, send email to

Re: i18n: date translation in Python

2009-12-22 Thread Bill Freeman
My first guess is that you create a custom template tag that rebinds the language while rendering its content, then restores it when it returns. On Tue, Dec 22, 2009 at 3:29 AM, Baurzhan Ismagulov wrote: > Hello Itay, > > On Tue, Dec 22, 2009 at 10:01:12AM +0200, Itay

Re: LDAP-groups problem

2009-12-22 Thread Wayne
Thanks for the prompt reply. Yes, unique=True was the problem. Now I passed the "run syncdb" and new tables were created. However, I still could not "contact LDAP". Could somebody help me with this? There could be many reasons so I want to start with loggings for Django-LDAP- Groups. Thanks! My

Re: Does Django support sockets of type SOCK_STREAM for full-duplex communication with a client?

2009-12-22 Thread Bill Freeman
You can fun a separate process to do this. It should probably be written as a manage.py extension to make access to the DB via the ORM as painless as possible. This way the web server thread is not tied up and can handle requests. The saves to the database (that I presume you're not showing)

Re: Custom Django-Admin commands

2009-12-22 Thread Bill Freeman
If you are calling this from, for example, crontab note that each line in crontab is executed in its own subshell, so you have the choice of setting PYTHONPATH, or (my personal favorite because it works with so many kinds of scripts) you can cd to the project directory and execute the script as

Re: What is the diff

2009-12-22 Thread Richard Shebora
This link explains that and more... http://www.w3schools.com/tags/att_form_method.asp Check out the other sections because there are more html basics you will need to know. Thanks, Richard On Tue, Dec 22, 2009 at 7:42 AM, vishal d <2009vis...@gmail.com> wrote: > what is the difference b/w

Re: cache optimization

2009-12-22 Thread Victor Loureiro Lima
We use django for a project in my company, and by using memcached and a few db_index on the correct fields of my models, I was able to go from 3 request per second, to approximatelly 300 request per second, mainly doing views cache. I didnt resort to per-model caching, or even NGINX and it solved

Re: pass to a template many querysets

2009-12-22 Thread Łukasz Balcerzak
Well, I'm not sure then. Tried debug queries? Use django-logging or Djalog and add catching/printing queries middleware, you should spot the point where something is going wrong... On Dec 22, 2009, at 3:35 PM, Francesco Benincasa wrote: > Just a thing to add: > as I wrote, only objects passed

Re: pass to a template many querysets

2009-12-22 Thread Francesco Benincasa
Just a thing to add: as I wrote, only objects passed through the "extra_context" parameter are not updated dinamically. The objects passed in the "queryset" are correctly updated. Thank you very much. * martedì 22 dicembre 2009, alle 15:00, Francesco Benincasa scrive: > * martedì 22 dicembre

Re: Book

2009-12-22 Thread Alex Robbins
You could also try the free online book. http://djangobook.com/ On Dec 22, 3:46 am, Amine wrote: > Hi, > I'm new in django and i'm searching a book : > django 1.0 web site development PDF > > can u help me please ! > inhttp://my.softarchive.net/search/?q=django=0=0   I

Re: cache optimization

2009-12-22 Thread omat
Thank you both very much for the comments. I just setup ngnix in front of apache yesterday and it really helped getting out of this mess. I didn't know about its advanced features you mentioned and I will experiment with them soon. I am caching the context of a page, but when new content

Re: Django-mod_python taking time loading libraries

2009-12-22 Thread Russell
I think fastcgi daemon may solve the problem. On Dec 22, 6:45 pm, bharath wrote: > Hi, > >     Django is taking time loading libraries . I am using python  open > source libraries like montylingua , simplejson and django is taking > time loading these libraries . > > When

Re: pass to a template many querysets

2009-12-22 Thread Francesco Benincasa
* martedì 22 dicembre 2009, alle 13:52, Łukasz Balcerzak scrive: > My bad, it should work without this "workaround" too... > > Are you using some sort of caching mechanism? Something not basic? Or maybe > some middleware? > The info_args dict you've posted, is it just passed to archive_index

Re: cache optimization

2009-12-22 Thread Michael
On Tue, Dec 22, 2009 at 8:50 AM, Javier Guerra wrote: > On Tue, Dec 22, 2009 at 8:44 AM, Michael wrote: > > Nginx can also create static files from dynamically served pages, so you > > could serve pages directly from disk. > > this is one of the best

Re: One thing to add to 0.96 to 1.0 porting guide

2009-12-22 Thread Russell
Cool. The Backwards Incompatibility Changes list is handy. Maybe you can add a link of it to the guide. So people know where to look. On Dec 22, 11:42 am, Karen Tracey wrote: > On Mon, Dec 21, 2009 at 10:19 PM, Russell wrote: >

Re: cache optimization

2009-12-22 Thread Javier Guerra
On Tue, Dec 22, 2009 at 8:44 AM, Michael wrote: > Nginx can also create static files from dynamically served pages, so you > could serve pages directly from disk. this is one of the best ways to do it. you could setup a mostly-complete static copy of your site, and make

Re: cache optimization

2009-12-22 Thread Michael
Are you using Memcache? It should utilize as much of the cache as it can without ever causing a memory overflow error. If you aren't, I would highly recommend using it, it makes life easier because it just works. Of course with only 512mb of RAM, depending on what you are caching and how much

What is the diff

2009-12-22 Thread vishal d
what is the difference b/w request.GET.get and request.POST.get methods plz give me the answer thanks in advance vishal D HYD -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: pass to a template many querysets

2009-12-22 Thread Łukasz Balcerzak
My bad, it should work without this "workaround" too... Are you using some sort of caching mechanism? Something not basic? Or maybe some middleware? The info_args dict you've posted, is it just passed to archive_index function and returned or are you doing something more on the way? On Dec 22,

Re: pass to a template many querysets

2009-12-22 Thread Francesco Benincasa
* martedì 22 dicembre 2009, alle 12:55, Łukasz Balcerzak scrive: > At the time queryset is sliced Django actually fire the query and return > objects as normal python list. > Thats why your extra_context is 'static'. > > Just slice latest_news / latest_pages at the template. Mmm, I've done it

Re: on manage.py validate why is django trying to access the database?

2009-12-22 Thread Kenneth Gonsalves
On Tuesday 22 Dec 2009 4:51:31 pm Kenneth Gonsalves wrote: > in a site on my local machine I am getting a psycopg programming error on > doing manage.py validate. Other sites on the same machine are behaving ok. > Any clues? > solved - someone had put code to execute in models.py - and

Re: pass to a template many querysets

2009-12-22 Thread Łukasz Balcerzak
At the time queryset is sliced Django actually fire the query and return objects as normal python list. Thats why your extra_context is 'static'. Just slice latest_news / latest_pages at the template. On Dec 22, 2009, at 12:47 PM, Francesco Benincasa wrote: > * lunedì 21 dicembre 2009, alle

Re: pass to a template many querysets

2009-12-22 Thread Francesco Benincasa
* lunedì 21 dicembre 2009, alle 12:21, rebus_ scrive: > > extra_context: A dictionary of values to add to the template context. > By default, this is an empty dictionary. If a value in the dictionary > is callable, the generic view will call it just before rendering the > template. > > >

Re: i18n: date translation in Python

2009-12-22 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-12-22, o godz. 12:39, przez Jarek Zgoda: > Wiadomość napisana w dniu 2009-12-22, o godz. 09:29, przez Baurzhan > Ismagulov: > >>> Maybe what I did can help you: in case you want to put the day name >>> in >>> the template you can put a proper date for each day and

Re: i18n: date translation in Python

2009-12-22 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-12-22, o godz. 09:29, przez Baurzhan Ismagulov: >> Maybe what I did can help you: in case you want to put the day name >> in >> the template you can put a proper date for each day and just put into >> the template for each day: >> {{ day|date: "l" }} >> day is a

Re: Best practice for implementing alternate templates (themes)

2009-12-22 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-12-22, o godz. 10:38, przez adrian_m: > I'm developing a web application that is intended only for mobile > use. I want to implement some kind of 'themes' : have a list of > templates/stylesheets and make it possible that each user chooses one > of them for

on manage.py validate why is django trying to access the database?

2009-12-22 Thread Kenneth Gonsalves
hi, in a site on my local machine I am getting a psycopg programming error on doing manage.py validate. Other sites on the same machine are behaving ok. Any clues? The error message is here: [law...@xlquest certificate]$ python manage.py validate Traceback (most recent call last):

cache optimization

2009-12-22 Thread omat
hi, a site of mine serves about 3,000 pages daily to its users, and about 10,000 to crawlers. users mostly surf the active pages, that are being updated recently, but crawlers go deeper into hundreds of thousands of pages, which have not been modified, and probably won't be for months. so i

Re: Book

2009-12-22 Thread Wayne Koorts
> I'm new in django and i'm searching a book : > django 1.0 web site development PDF > > can u help me please ! > in http://my.softarchive.net/search/?q=django=0=0    I could not > download it. > > Is there another way ? Absolutely:

Re: Book

2009-12-22 Thread Russell Keith-Magee
On Tue, Dec 22, 2009 at 5:46 PM, Amine wrote: > Hi, > I'm new in django and i'm searching a book : > django 1.0 web site development PDF > > can u help me please ! > in http://my.softarchive.net/search/?q=django=0=0    I could not > download it. > > Is there another way ?

Re: Book

2009-12-22 Thread Rafael Vieira
hi, look at docs django 2009/12/22 Amine : > Hi, > I'm new in django and i'm searching a book : > django 1.0 web site development PDF > > can u help me please ! > in http://my.softarchive.net/search/?q=django=0=0    I could not > download it. > > Is there another way ? > >

Re: i18n: date translation in Python

2009-12-22 Thread Itay Donenhirsch
ah, donno about same page... On Tue, Dec 22, 2009 at 10:29 AM, Baurzhan Ismagulov wrote: > Hello Itay, > > On Tue, Dec 22, 2009 at 10:01:12AM +0200, Itay Donenhirsch wrote: >> Maybe what I did can help you: in case you want to put the day name in >> the template you can put a

Book

2009-12-22 Thread Amine
Hi, I'm new in django and i'm searching a book : django 1.0 web site development PDF can u help me please ! in http://my.softarchive.net/search/?q=django=0=0I could not download it. Is there another way ? thanks for help. -- You received this message because you are subscribed to the

Best practice for implementing alternate templates (themes)

2009-12-22 Thread adrian_m
Hello all, I'm developing a web application that is intended only for mobile use. I want to implement some kind of 'themes' : have a list of templates/stylesheets and make it possible that each user chooses one of them for visualisation. The number of users is small and all of them will use

Re: Does Django support sockets of type SOCK_STREAM for full-duplex communication with a client?

2009-12-22 Thread Baurzhan Ismagulov
Hello Chris, On Mon, Dec 21, 2009 at 04:49:56PM -0800, Chris wrote: > I have a client that needs to constantly send data to Django-based > backend. The client code follows the pattern: > > ... > s = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) > s.connect( ( '10.20.30.40', 8080 ) ) >

Re: Does Django support sockets of type SOCK_STREAM for full-duplex communication with a client?

2009-12-22 Thread adrian_m
On Dec 22, 2:49 am, Chris wrote: > Hello, > > I have a client that needs to constantly send data to Django-based > backend. The client code follows the pattern: > > ... > s = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) > s.connect( ( '10.20.30.40', 8080 ) ) > while

Re: i18n: date translation in Python

2009-12-22 Thread Baurzhan Ismagulov
Hello Itay, On Tue, Dec 22, 2009 at 10:01:12AM +0200, Itay Donenhirsch wrote: > Maybe what I did can help you: in case you want to put the day name in > the template you can put a proper date for each day and just put into > the template for each day: > {{ day|date: "l" }} > day is a

Django-mod_python taking time loading libraries

2009-12-22 Thread bharath
Hi, Django is taking time loading libraries . I am using python open source libraries like montylingua , simplejson and django is taking time loading these libraries . When django is run using python manage.py runserver first request takes time but rest of the requests doesn't take time (

Re: Custom Django-Admin commands

2009-12-22 Thread Justin Steward
I'm at a loss as to understand why, but I've worked out what I need to add to pythonpath. PYTHONPATH=/home/user i.e. The pythonpath needs to include NOT the project's root, but the directory one level ABOVE that for custom commands to work properly... Thanks for the help guys. ~Justin -- You

Re: i18n: date translation in Python

2009-12-22 Thread Itay Donenhirsch
Hi, Maybe what I did can help you: in case you want to put the day name in the template you can put a proper date for each day and just put into the template for each day: {{ day|date: "l" }} day is a datetime.date object. that should give the proper day name according to the locale you set in