Re: django-admin.py startproject will NOT work.

2012-01-01 Thread Chris Kavanagh
On Dec 31 2011, 7:13 pm, Bart Nagel wrote: > At 2011-12-31 16:00:44 -0800, Chris Kavanagh wrote: > > > On Dec 31, 6:48 pm, Bart Nagel wrote: > > > Does this little script tell you correctly the number of arguments you > > > pass to it? > > > Yes, it tells me the number of args. > > Okay, in tha

Re: django-admin.py startproject will NOT work.

2012-01-01 Thread Bart Nagel
At 2012-01-01 01:12:27 -0800, Chris Kavanagh wrote: > On Dec 31 2011, 7:13 pm, Bart Nagel wrote: > > When I run that I get > >     3 arguments: ['args.py', 'startproject', 'mysite'] > > > > Paste your own output. > > I get the same as you: > > C:\Python27\Scripts>python args.py startproject mysi

Re: Need help for using easy_thumbnails

2012-01-01 Thread francescortiz
I wrote a thumbnailing app myself: https://github.com/francescortiz/image The main advantages of this are: - You set the center of attention for images through the admin section. This way, when you crop your image it looks properly aligned, whatever crop you do. This is the reason why I created i

django e-commerce logic

2012-01-01 Thread francescortiz
I've been looking around for django commerce sollutions for a while and they all seem to work with predefined database models. For instance, you always have a name field and a slug field that come with the product. While this could seem fine if you are creating a store form scratch, it makes it ver

Re: Internationalization and localization

2012-01-01 Thread francescortiz
I always create multilingual sites. What I do is inspired by django- modeltranslation, but I find awkward that it leaves a "default" language field and I prefer to have all my fields defined inside my models. 1. Create a field for each language and a function that returns the field corresponding t

Re: Multiple access to static data

2012-01-01 Thread francescortiz
If you are sending a 2mb json on every action and there are only about 40 nutrients per food, either I am missing a point or something is really wrong about your logic. On Dec 3 2011, 12:34 pm, mf wrote: > I'm building an application and I'm having trouble making a choice > about how is the best

Re: Django dev/deploy environment for distributed agile teams

2012-01-01 Thread Ashkan Roshanayi
Thanks Denis, I am not sure about using Gunicorn. Actually am thinking about a more async, non-blocking platform maybe using Tornado. What do you think? Cheers, On 11 Dey, 1390, at 12:53 AM, Denis Darii wrote: > Hi Ashkan, > > You can take a look at our project: django-fagungis = DJANGO + FAbr

User-set domain-prefixes, i.e. myname.googlegroups.com

2012-01-01 Thread Alec Taylor
Good morning, I want to integrate user-set domain-prefixes to the registration process of my site. Sample form: Username: [] Name: [] Password: [] Email: [] Domain prefix: [].googlegroups.com How would I go about doing this in Django? — I suspect there would be some facets o

Re: Happy new year

2012-01-01 Thread Daniel Ngarambe
Hello Geeks, I wish you all a happy mew year. DNSr. Sent from Samsung Galaxy S On 1 Jan 2012 08:24, "girish shabadimath" wrote: > New year wishes to everyone,, > > regards, > girish ms > On Sun, Jan 1, 2012 at 10:24 AM, Nikhil Verma wrote: > >> Happy new year to all of you. >> >> >> On Sun, Ja

Getting children of an ABC

2012-01-01 Thread Knight Samar
I am using Django 1.3.1 and I have the following piece of models: class masterData(models.Model): uid = models.CharField(max_length=20,primary_key=True) class Meta: abstract = True; class Type1(masterData): pass; class Type2(masterData): pass; Now, I am trying to get

Skip upload of existing S3 Object

2012-01-01 Thread Chris Hasenpflug
I have a model with an ImageField and am using django-storages S3BotoStorage backend. To reduce load on the server, I'm using Amazon's S3 Browser Upload functionality[1] to send images directly to S3. In order to create the model, my plan is have another view take the uploaded key and save a model

Re: Happy new year

2012-01-01 Thread Cal Leeming [Simplicity Media Ltd]
Happy new year everyone :) Lets hope 2012 is a great year for Django!! On Sun, Jan 1, 2012 at 8:58 AM, Daniel Ngarambe wrote: > Hello Geeks, > > I wish you all a happy mew year. > > DNSr. > > Sent from Samsung Galaxy S > On 1 Jan 2012 08:24, "girish shabadimath" > wrote: > >> New year wishes t

Re: Django app for IP address lookup

2012-01-01 Thread Cal Leeming [Simplicity Media Ltd]
Nice little web app. It would be great if you can put the source code on GitHub, so others may benefit from this :) Cal On Sun, Jan 1, 2012 at 6:56 AM, Timothy Makobu wrote: > Thanks man. Happy new year! > > > On Sun, Jan 1, 2012 at 9:33 AM, Addy Yeow wrote: > >> Here you go: >> http://dazzlep

Re: Happy new year

2012-01-01 Thread Timothy Makobu
+1 On Sun, Jan 1, 2012 at 8:28 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Happy new year everyone :) > > Lets hope 2012 is a great year for Django!! > > > On Sun, Jan 1, 2012 at 8:58 AM, Daniel Ngarambe wrote: > >> Hello Geeks, >> >> I wish you all a

Re: Django dev/deploy environment for distributed agile teams

2012-01-01 Thread creecode
Hello Ashkan, Gunicorn can handle async from what I read < http://gunicorn.org/design.html >. From the docs... Sync Workers The most basic and the default worker type is a synchronous worker class that handles a single request at a time. This mode

"1054 unknown column..." in MySql5

2012-01-01 Thread James Jang
Hi, I hope I get your good helps or advises. MY SYSTEM : win7, python2.6, django-1.3.1, using development server(django), MySql5 After making model class, "1054 unknown column...in field list." message is shown in admin page. Is this a MySql version issue? or? Thanks any. Happy New Year~ -

Re: Unable to display static content.

2012-01-01 Thread Chirdeep
Now I have changed the project structure to Project -webApp ---static -images -stylesheets -index.html ---templates I can browse to index.html inside static folder. http://127.0.0.1:8000/static/index.html For some reason, its adding the search-form to the URL for loading CSS and Ima

Re: "1054 unknown column..." in MySql5

2012-01-01 Thread Babatunde Akinyanmi
Its not a mysql problem but you really have to give a better description of the problem so you can get quick and useful replies to your question. However: Have you snycdb-ed? Also, did you remove or add an attribute from a model class after syncdb-ing? If you did, you have to manually drop the tab

Re: User-set domain-prefixes, i.e. myname.googlegroups.com

2012-01-01 Thread creecode
Hello Alec Taylor, I've done something like this at one of my websites. The basic steps I use are gather the info in a form. On form submit the info goes into a website registration database and the user is sent a website creation confirmation email. The user receives the email and clicks on t

Re: Unable to display static content.

2012-01-01 Thread Babatunde Akinyanmi
Are you sure you read this?: https://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/ >From my own experience, storing my static files in '/static/' never works so I always create a separate folder for my static files and add the path to STATICFILES_DIRS in my settings. On 1/1/12, Chirdeep

Expand FlatPage admin interface.

2012-01-01 Thread Elad Zucker
I am learning Django using the book "Practical Django Project". This isn't such an old book but seems to be very out-dated in terms of django. it Uses the old admin interface which I assume was replaced in version 1.0. To make a long story short, one of the example of the book is to add a keyword

Re: Expand FlatPage admin interface.

2012-01-01 Thread Timothy Makobu
https://docs.djangoproject.com/en/1.3/releases/1.0-porting-guide/#the-admin On Sun, Jan 1, 2012 at 9:59 PM, Elad Zucker wrote: > I am learning Django using the book "Practical Django Project". This isn't > such an old book but seems to be very out-dated in terms of django. it Uses > the old admi

Re: USStateField default value

2012-01-01 Thread Erisa
Changing 'default' to 'initial' gives me an unexpected argument 'blank' error. If I remove the blank=True attribute, there is no error, but the select box is absent from the form! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Creating clean URLS

2012-01-01 Thread lankesh87
I want my url to be free from parameters being passed. I have handled the request in "twitter_after_auth" function of view and I am redirecting user to the new url "http://localhost/create_cr/"; but instead the url shows some additional parameters that I have already handled. something like bel

Re: Creating clean URLS

2012-01-01 Thread Jonas Geiregat
> I want my url to be free from parameters being passed. > > I have handled the request in "twitter_after_auth" function of view > and > > I am redirecting user to the new url "http://localhost/create_cr/"; > > but instead the url shows some additional parameters that I have > already handled.

Re: Skip upload of existing S3 Object

2012-01-01 Thread Ivo Brodien
Hi, the form sends the picture to S3 and then S3 calls you on an URL which you specify with “ success_action_redirect”. This should point to an URL on your server where you then store the key/hash which will be provided in the URL. Your code uses POST data but S3 will put the metadata in the UR

Re: Creating clean URLS

2012-01-01 Thread Charles Cossé
I had that occur at one point last night ... can't remember the circumstance, but perhaps you are using a form? On Sun, Jan 1, 2012 at 2:24 PM, Jonas Geiregat wrote: > > > > I want my url to be free from parameters being passed. > > > > I have handled the request in "twitter_after_auth" function

Re: django-admin.py startproject will NOT work.

2012-01-01 Thread Chris Kavanagh
On Jan 1, 4:44 am, Bart Nagel wrote: > At 2012-01-01 01:12:27 -0800, Chris Kavanagh wrote: > > > On Dec 31 2011, 7:13 pm, Bart Nagel wrote: > > > When I run that I get > > > 3 arguments: ['args.py', 'startproject', 'mysite'] > > > > Paste your own output. > > > I get the same as you: > > > C:\P

Re: Creating clean URLS

2012-01-01 Thread Lie Ryan
On 01/02/2012 07:53 AM, lankesh87 wrote: I want my url to be free from parameters being passed. I have handled the request in "twitter_after_auth" function of view and I am redirecting user to the new url "http://localhost/create_cr/"; but instead the url shows some additional parameters that

Re: django-admin.py startproject will NOT work.

2012-01-01 Thread Bart Nagel
At 2012-01-01 14:23:50 -0800, Chris Kavanagh wrote: > On Jan 1, 4:44 am, Bart Nagel wrote: > > At 2012-01-01 01:12:27 -0800, Chris Kavanagh wrote: > > > > > On Dec 31 2011, 7:13 pm, Bart Nagel wrote: > > > > When I run that I get > > > > 3 arguments: ['args.py', 'startproject', 'mysite'] > > > >

Apache RewriteRule for django

2012-01-01 Thread Bob Kline
I'm moving a django site to a shared hosting server, where I'll need to use fastcgi (the site on the original server is using mod_python, which isn't available on the shared hosting server). I have found the instructions for setting this up, but it's not working. I'm getting "The requested URL /a

Re: Apache RewriteRule for django

2012-01-01 Thread Tiago de Souza Moraes
Hi Bob Kline, May be that this link help you: http://teago.futuria.com.br/tip/4/ Tiago On Mon, Jan 2, 2012 at 12:39 AM, Bob Kline wrote: > I'm moving a django site to a shared hosting server, where I'll need > to use fastcgi (the site on the original server is using mod_python, > which isn't av

Re: Need help in renaming template tags

2012-01-01 Thread CareerDhaba tech
Just bumping this up in case anyone can help. Thanks, Harshil On Mon, Dec 26, 2011 at 7:31 PM, CareerDhaba tech wrote: > Hey everyone, > > I am running into an issue where two third party apps easy_thumbnail and > sorl_thumbnail are using the custom template tag called thumbnail. Hence, I > am a

Re: Expand FlatPage admin interface.

2012-01-01 Thread Elad Zucker
Thanks, I already seen that articles. The main problem I am having with trying to change the flatpage is that the flatpage is already registered. so I cant re-register with a new admin modal. I have an error : All I want to do is that when I access the FlatPage I would like to have an aditional fi