Re: The name of my User

2011-11-13 Thread Nikhil Verma
Hi you need to keep the object in memory not in the database i think that what you are asking .If that you need to something like this variablename = Tablename.objects(fieldname = whatever ) do not write after variablename.save() after making this .Don't use create. On Mon, Nov 14, 2011 at

help_text line continuation

2011-11-13 Thread Mike Dewhirst
I have been using the Python line continuation symbol +\ in my models help_text when my text goes beyond column 80 in my editor. I just accidentally omitted it for a continued line and discovered it doesn't seem to be needed!!! Is that a feature of Django's admin app or a trap for the

Re: Which Linux distro to use on EC2?

2011-11-13 Thread Javier Guerra Giraldez
On Sun, Nov 13, 2011 at 8:52 PM, ydjango wrote: > I was concerned that Ubuntu being a desktop OS might have some > limitations which CENTOS or Debian being Server OS might not have. AFAICT, there are very few differences between 'server' and 'desktop' distros: - server

Re: Admin Change List: Display Foreign Keys as Links to Related Change Form

2011-11-13 Thread Sumii L
Perhaps you have a foreignkey, Assumption is that person just like this:( in your models) def go_person(self): return mark_safe(u'%s' % (self.person.get_absoulte_url(), label)) go_person.allow_tags = True go_person.short_description = 'GO_PERSON' --and in your admin.py: list_dispaly =

Maturity of e-commerce modules in DJango when compared with Catalyst

2011-11-13 Thread Alec Taylor
Good afternoon, After trialling ~20 CMSs, I have decided that none are extensible enough for my project, and that a web-framework is best. Of the various web-frameworks, Catalyst and DJango seem to be the most powerful, and also have the most pre-built extensions. My question to both

Re: Which Linux distro to use on EC2?

2011-11-13 Thread Mengu
if i had to choose a linux distro, i'd go with debian. however if i can choose whatever i want then i'd go with freebsd. we are using freebsd on 6 web servers and debian on 2 with the same hardware configuration freebsd is outperforming debian. On Nov 13, 9:56 pm, ydjango

Re: Which Linux distro to use on EC2?

2011-11-13 Thread ydjango
I was concerned that Ubuntu being a desktop OS might have some limitations which CENTOS or Debian being Server OS might not have. Based on answers so far, looks like all the distributions are quite close and my concern about ubuntu is unfounded. If it is all matter taste then I will go with

Re: runserver namespace problem?

2011-11-13 Thread Ken
Does anybody have any idea? -- 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 django-users+unsubscr...@googlegroups.com. For more

Re: Which Linux distro to use on EC2?

2011-11-13 Thread Kurtis Mullins
I don't have a recommendation on a specific distribution -- that's really a matter of personal taste and experience. However, try to go with a free-tier instance until you really need to upgrade. There are only certain images that can be used with that free-tier. It's a pretty good deal! I've used

Re: Which Linux distro to use on EC2?

2011-11-13 Thread Joey Espinosa
No, Gentoo is not a variant of Debian. I also don't think there are variants that are for "hardcore" users more than others. If you're "hardcore", then you should be able to do things like write your own kernel modules and perform low-level disk operations no matter the distro. I personally love

Re: Which Linux distro to use on EC2?

2011-11-13 Thread Casey Greene
I would suggest that you use whatever your sysadmin (or if no sysadmin, developer (or if it's just you, you)) are most familiar with. I assume the packages that you are using (at least the ones you've listed) will be in the package management systems for any of the distros that you have

The name of my User

2011-11-13 Thread chronosx7
Hi, I am new to dJango an now I need to get the name of the user that authenticated before the execution of the Save method but I can't seem to find any way to accomplish this. Does anyone know how to do this? Thanks for your help -- You received this message because you are subscribed to the

Re: point url with folder to s3

2011-11-13 Thread Justin Steward
On Mon, Nov 14, 2011 at 8:47 AM, ydjango wrote: > I have all my static being served from https://www.example.com/media/ > > in my code I have all images pointing to /media all over the code. > for example: > > Is there a way I can point it to use S3 and cloudfront to serve

Admin Change List: Display Foreign Keys as Links to Related Change Form

2011-11-13 Thread Lee
This has gotta be easy but I'm not finding a solution in this list or snippets: how do I make Admin display foreign keys on change lists as links to the related record's change form? The displayed value is correct I just need it to be a hyperlink. Thanks for any help- Lee -- You received this

point url with folder to s3

2011-11-13 Thread ydjango
I have all my static being served from https://www.example.com/media/ in my code I have all images pointing to /media all over the code. for example: Is there a way I can point it to use S3 and cloudfront to serve the static files. My understanding is that I cannot use CNAME. If I was using

Re: Which Linux distro to use on EC2?

2011-11-13 Thread Charles Cossé
The main difference with Ubuntu is that it's a binary distribution (pre-compiled binaries for a standardized platform). I use Gentoo, personally, which is a variant of Debian with "portage" rather than "apt". LAMP server stuff is readily available on all distros of Linux. If you're hardcore

Re: MVP--an open source repository for libraries and modules

2011-11-13 Thread Kurtis Mullins
Im assuming he means Model View Presentation because of the Django Context. On Nov 13, 2011 8:53 AM, "Stuart Laughlin" wrote: > http://www.acronymfinder.com/MVP.html ? > > On Nov 12, 9:04 am, skier31415 wrote: > > I'm a coder, but I don't code

setting up openlayers proxy.cgi

2011-11-13 Thread Daryl
I need to know how to setup a proxy.cgi script on my Local Django Development setup and can't seem to find the right information to do it. The closest i've gotten to running any cgi script is when it just displays the source code on the webpage...which isn't exactly 'running' is it? Is it ok to

Which Linux distro to use on EC2?

2011-11-13 Thread ydjango
I am setting up nginex, apache, python django, mysql based application on EC2. I expect high web traffic and high mysql query usage. Mysql and web server will on seperate servers. Which linux distro should I use for heavy production use - Ubuntu, Centos or Debian? Does it matter? I see most

a class that defines __slots__ without defining __getstate__ cannot be pickled

2011-11-13 Thread Gelonida N
Hi, I have now an error message showing up when accessing the django admin interface for some of my models. Fails already at the front page The main problem, that I have is, that the stack trace does not relate to any line of my code, so I'm alittle at a loss how to fix it. The stack trace is:

include() combined with login_required()

2011-11-13 Thread Gelonida N
Hi, I wondered whether (and if yes how) I can combine login_required and include() in my urls.py file Basically I'd like to require login for every url belonging to a certain application. currently urls.py looks like: from django.conf.urls.defaults import patterns, include, url from

direct insert to intermediary table

2011-11-13 Thread SElsner
Hello, I am moving data from a ODBC source to Django. This works well with models explicitly defined. But how would I create records directly for the (implicit) intermediary ManyToMany relationship table? Cheers Sebastian -- You received this message because you are subscribed to the Google

Re: MVP--an open source repository for libraries and modules

2011-11-13 Thread Stuart Laughlin
http://www.acronymfinder.com/MVP.html ? On Nov 12, 9:04 am, skier31415 wrote: > I'm a coder, but I don't code for the majority of my time.  What I do > is identify, install, employ, and adapt mostly working solutions.  I > stand on the shoulders of giants.  There are

Re: How many read operations is the get() method causing?

2011-11-13 Thread Daniel Roseman
On Saturday, 12 November 2011 23:04:44 UTC, Emil Sandin wrote: > > Hi, I am running a Django app on appengine, but I am constantly > hitting the roof with read operations. > I have not found an easy way to find what's causing this, so I am > trying to find it out myself. > To me, it seems that

Re: Massive import from CSV to Database

2011-11-13 Thread Fabio Natali
On 11/12/2011 07:40 PM, Andre Terra wrote: Hello, Fabio I took a look at django-csv-importer but since my files weren't quite clean (or comma separated), I ended up rolling my own solution using celery[1], to make the uploading rask asynchronous, and DSE[2], to allow for faster bulk imports,

Re: [] Re: memcached - Errors and Solution - please provide comments!

2011-11-13 Thread ionic drive
Hello and thanks for the respond. My knowledge on caching was little. I used it, but I never programmed it my self. So I had no idea about how the keys would be stored. The solution was... I did not mess with my memcached.py or anything else. I just use it as everybody else is using it. The

Re: Massive import from CSV to Database

2011-11-13 Thread Fabio Natali
On 11/13/2011 08:38 AM, Fabio Natali wrote: [...] Here is my try: ### from django.db import models from csvImporter.model import CsvModel class MyCsvModel(CsvModel): name = models.CharField() age = models.IntegerField() length = models.FloatField() class Meta: delimiter = ";" my_csv_list =

Re: Massive import from CSV to Database

2011-11-13 Thread Fabio Natali
On 11/12/2011 08:25 PM, Dan Poirier wrote: There are some ways to make large data imports much faster. See e.g. http://www.caktusgroup.com/blog/2011/09/20/bulk-inserts-django/ Hi Dan! Import speed was not my primary concern during these first attempts. I thought that django-csv-importer