Re: Cheap Django hosting?

2012-01-02 Thread Alec Taylor
Try from this interface: https://groups.google.com/forum/#!forum/django-users (it'll make you join, then you'll be able to send to that address directly from your Inbox) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Cheap Django hosting?

2012-01-02 Thread ali alizadeh
hi. sorry, but i'm new to this mailing list. can somebody tell me how can i post a question? i tried sending an email to "django-users@googlegroups.com" but i keep receiving a failure notice. On Tue, Jan 3, 2012 at 4:36 AM, Alec Taylor wrote: > Webfaction seems to be

InlineModelAdmin show dropdown in Many to Many models

2012-01-02 Thread Enrique Juan de Dios
Hi everyone. I'm newbie on Django and use Grappelli for admin site. Files related: https://gist.github.com/1553188 When I use a one to many relation the admin shown this one:

Re: Using STATIC_URL in CSS/JS files?

2012-01-02 Thread Andres Reyes
If you're serving your media from the same domain as your CSS i'd use relative paths 2012/1/2 Christophe Pettus : > > On Jan 2, 2012, at 5:56 PM, Victor Hooi wrote: >> E.g. I have a CSS file that points to a PNG sprite, and I'd like a way to >> get it to point to {{

Introducing: pythonpackages.com

2012-01-02 Thread Alex Clark
Hi, For the past two months I've been developing a service for developers and consumers of Python packages: - http://pythonpackages.com (And as a Django user, this service may be of interest to you). Recently, we've added the ability for folks to login with their github account. This

Re: Using STATIC_URL in CSS/JS files?

2012-01-02 Thread Christophe Pettus
On Jan 2, 2012, at 5:56 PM, Victor Hooi wrote: > E.g. I have a CSS file that points to a PNG sprite, and I'd like a way to get > it to point to {{ STATIC_URL}} without hardcoding the URL/path - any way? You can use Django to serve your CSS file if you want to, although you'll want to cache the

Using STATIC_URL in CSS/JS files?

2012-01-02 Thread Victor Hooi
Hi, In Django, you can use {{ STATIC_URL }} in your HTML templates to point to the correct path for static files, however I'm wondering if there's any way to use it inside of CSS/JS files? E.g. I have a CSS file that points to a PNG sprite, and I'd like a way to get it to point to {{

Re: Cheap Django hosting?

2012-01-02 Thread Alec Taylor
Webfaction seems to be the best so far, offers lots of features, lots of space+memory and is around $6 a month. On Tue, Jan 3, 2012 at 8:34 AM, zzeus wrote: > webfaction.com > > On 2 янв, 13:49, Alec Taylor wrote: >> Good afternoon, >> >> I'm looking

Re: django/Data Base Advice

2012-01-02 Thread Mike Dewhirst
On 3/01/2012 10:59am, Chris Kavanagh wrote: On Jan 2, 6:57 pm, Chris Kavanagh wrote: I'm new to django& programming in general. I know the basics of Python. Anyways, going through the djangoproject tutorial, I came to the part where you edit the polls/models.py, and this

Re: django/Data Base Advice

2012-01-02 Thread Chris Kavanagh
On Jan 2, 6:57 pm, Chris Kavanagh wrote: > I'm new to django & programming in general. I know the basics of > Python. Anyways, going through the djangoproject tutorial, I came to > the part where you edit the polls/models.py, and this is where I need > advice. > > I understand

django/Data Base Advice

2012-01-02 Thread Chris Kavanagh
I'm new to django & programming in general. I know the basics of Python. Anyways, going through the djangoproject tutorial, I came to the part where you edit the polls/models.py, and this is where I need advice. I understand roughly what's going in when we write the script in models.py, however

Re: Cheap Django hosting?

2012-01-02 Thread zzeus
webfaction.com On 2 янв, 13:49, Alec Taylor wrote: > Good afternoon, > > I'm looking for some cheap Django hosting, to host all my test sites. > My production sites will be have more expensive, more reliable, faster > servers+sites; but it would be good to have a cheap

Pythons subprocess with WSGI + Apache mpm-worker: IOError 4

2012-01-02 Thread sbrandt
Hello, I hope it's okay to if I just share a StackOverflow link here because I've explained the problem in detail there: http://stackoverflow.com/questions/8678897/ I hope any of you guys encountered the same error because I don't know what to do next. It works on a second virtual machine

Re: django admin list_editable and custom manager bug?

2012-01-02 Thread Slafs
Oh Maybe it has something to do with my previous report https://code.djangoproject.com/ticket/13126 ? And one more thing to mention is that there's no error indication on the changelist. Regards -- You received this message because you are subscribed to the Google Groups "Django users"

django admin list_editable and custom manager bug?

2012-01-02 Thread Slafs
Hi there! Can You please examine my code https://bitbucket.org/slafs/listeditexample/overview ? I thinks there's a bug in django admin when using the list_editable with overriden queryset method and a custom default manager. Please refer to this small example for details. Is there anything

Field Inheritance

2012-01-02 Thread Sepero
I would like to suggest listing/displaying the Parent Class for classes on API pages like this- https://docs.djangoproject.com/en/1.3/ref/models/fields/ In part1 of the Django tutorial, it instructs to create a model like this- pub_date = models.DateTimeField('date published') While trying to

Re: How to get current session user in models.py?

2012-01-02 Thread Waldek Herka
@Andy: I agree it may be convoluted a bit indeed.. but your alternative a) is not an option - I would not do it if I did not needed it, wouldn't I ;-) b) requires interface changes, sometimes it's even messier.. changing the signatures means you need make sure all the callers would accept that

Re: How to get current session user in models.py?

2012-01-02 Thread Andy McKay
Inspecting your stack to find the user seems a pretty convoluted way to do it. You could either a) not access users in your models b) explicitly pass the user around or c) just place your user into a local threading and retrieve it anywhere else for example:

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

2012-01-02 Thread Chris Kavanagh
Thanks to EVERYONE for the help! ( and Bart for his help/patience!) -- 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

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

2012-01-02 Thread Chris Kavanagh
On Jan 2, 4:59 am, Andre Terra wrote: > Use virtualenv:  http://pypi.python.org/pypi/virtualenv > > Cheers, > AT > > I think I'll give that a try. Thanks for the help. > > -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: How to get current session user in models.py?

2012-01-02 Thread Waldek Herka
Hi, I actually have already sent this to Shawn, but thought it might be useful if I post to it a broader audience. Here is my solution to this problem: user = None outer_frames = inspect.getouterframes(inspect.currentframe()) for tpl in outer_frames: arginfo

Re: Apache RewriteRule for django

2012-01-02 Thread Bob Kline
On Mon, Jan 2, 2012 at 11:39 AM, Dan Poirier wrote: > Apache doesn't quite work that way. If the part before a slash > corresponds to a file, it'll use that file and pass the rest to the > request processor. Ah, very clever. I can confirm what you say by changing the

Re: Happy new year

2012-01-02 Thread ravinder singh
Happy new year to all On Jan 1, 2012 11:06 PM, "Timothy Makobu" wrote: > +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

Re: Apache RewriteRule for django

2012-01-02 Thread Dan Poirier
On Mon. 2012-01-02 at 07:23 AM EST, Bob Kline wrote: > So, my .htaccess file looks just like that (with "mysite" replaced > with the real name of the script). The part I don't understand is the > slash between the script name and the placeholder $1. The way the > filesystem

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

2012-01-02 Thread James Jang
Thank you for kind reply. I followed your word; DROP TABLE!! and the puzzle was solved. OOh~ Thank you. -- 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

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

2012-01-02 Thread Alec Taylor
On Mon, Jan 2, 2012 at 5:27 AM, creecode wrote: > 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

Re: Need help in renaming template tags

2012-01-02 Thread CareerDhaba tech
Sent the previous email without reading the thread. I tried both {% import %} and {% load %}, but it errors out when trying to access either of the thumbnails in the app, spitting out an unpacking error. I have opened an issue on the github page, but haven't heard from the original developer yet.

Re: Need help in renaming template tags

2012-01-02 Thread CareerDhaba tech
I am using two because django-userena uses easy_thumbnail, but I'd like to use sorl-thumbnail for actual thumbnail use in my app. - Harshil On Mon, Jan 2, 2012 at 8:07 PM, francescortiz wrote: > Why are you using two thumbnail providers? > > On Dec 26 2011, 3:01 pm,

Re: Need help in renaming template tags

2012-01-02 Thread CareerDhaba tech
Hi Andre, Thanks for looking into this. Have you come across this django app? https://github.com/codysoyland/django-smart-load-tag The app claims to have a fix for this problem, but I had trouble getting it to work (unpacking issue). If you can keep me in the loop regarding the ticket, that

Re: Need help in renaming template tags

2012-01-02 Thread francescortiz
Why are you using two thumbnail providers? On Dec 26 2011, 3:01 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

Re: Creating clean URLS

2012-01-02 Thread lankesh87
Yes I am using form to send values.. and here is the view code:- -- views.py

Re: Cheap Django hosting?

2012-01-02 Thread Timothy Makobu
ep.io On Mon, Jan 2, 2012 at 1:00 PM, Andre Terra wrote: > Hello, Alec > > > There are plenty of threads regarding inexpensive django hosting. Please > browse the mailing list archives before starting a new one. > > We don't need another 100 replies with suggestions! > > >

Re: ERP with Supply chain management (incl. POS) and Customer relationship management — What's available?

2012-01-02 Thread Venkatraman S
On Mon, Jan 2, 2012 at 3:15 PM, Alec Taylor wrote: > > So I think building it myself would be my best bet. > > Looking forward to the schema design tutorial of the model layer, > Am not sure what you are hinting at. First define the business

Re: USStateField default value

2012-01-02 Thread Martin Pajuste
You get that error because 'blank' is model field option. If you want to be able to accept empty values, use required=False instead. > state = USStateField(initial='CA', required=False) -- You received this message because you are subscribed to the Google Groups "Django users" group. To view

Re: Need help in renaming template tags

2012-01-02 Thread Andre Terra
I now realize the problem is much more complex than what I though originally. My suggestion to you is to use this nifty third-party tool called django-smart-load-tag[1]. Once you get it up and running, try using {% import %} instead of {% load %}. Cheers, AT [1]

Re: Need help in renaming template tags

2012-01-02 Thread Andre Terra
Hello, I looked into your problem and realized the current implementation of {% load %} doesn't allow for homonimous tags. I plan on working toward a patch to fix this, but this can take a little while. Meanwhile, your best bet would be to fork one of the two projects and change the tag's name, I

Re: Apache RewriteRule for django

2012-01-02 Thread Bob Kline
Thanks, Tiago. Unfortunately I don't understand enough Portuguese to get the full benefit of the page you pointed me to. It appears that your using WSGI on a server on which you have root access, whereas I'm moving the app to a shared hosting server where I can't edit httpd.conf, and I'm

Sample Application for using Google Docs API

2012-01-02 Thread kapil Garg
Hi , I'm working on a web application and want to integrate Google docs with that. Being new to Django and Web app, I'm finding it difficult to understand the documentation provided for using Google Docs API . Is there any sample application that I can refer to for the same. ~Kapil -- You

Re: Apache RewriteRule for django

2012-01-02 Thread Bob Kline
Thanks for your reply, Daniel. My reading of the documents you pointed me to was that the FastCGIExternalServer directive goes in the httpd.conf file, to which I don't have access, as I'm setting this up on a shared hosting service. So I followed the instructions pointed to by the note

Re: Expand FlatPage admin interface.

2012-01-02 Thread Andre Terra
On Mon, Jan 2, 2012 at 5:57 AM, Elad Zucker wrote: > 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. Try having a call to admin.site.unregister first! Cheers,

Re: technique about using thread in views.py

2012-01-02 Thread Andre Terra
Don't use Thread, use Celery [1] and django-celery[2]. You will also need one of several available brokers, like RabbitMQ[3][6], or kombu[4] + django-kombu[5]. Happy reading! Cheers, AT [1] http://ask.github.com/celery/ [2] http://pypi.python.org/pypi/django-celery/ [3]

Re: technique about using thread in views.py

2012-01-02 Thread kenneth gonsalves
On Mon, 2012-01-02 at 02:37 -0800, Kay wrote: > def welcome(request): > c = {} > c.update(csrf(request)) > return render_to_response("welcome_page.html",c) your code stops here, unless you have something in the welcome page to call this or another view function, you will be stuck on

technique about using thread in views.py

2012-01-02 Thread Kay
Hi,guys~ Happy new year ^^ I am a beginner at django. I want to run a very simple thread in django project. when view.py after running welcome_page.html to show a html on browser then call a thread print something on background. But I can't run it well with those two merged in views.py. Following

Re: Apache RewriteRule for django

2012-01-02 Thread Daniel Roseman
On Monday, 2 January 2012 02:39:00 UTC, 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 available on the shared hosting server). I have found the > instructions for

Re: Cheap Django hosting?

2012-01-02 Thread Andre Terra
Hello, Alec There are plenty of threads regarding inexpensive django hosting. Please browse the mailing list archives before starting a new one. We don't need another 100 replies with suggestions! Cheers, AT On Mon, Jan 2, 2012 at 6:49 AM, Alec Taylor wrote: > Good

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

2012-01-02 Thread Andre Terra
Use virtualenv: http://pypi.python.org/pypi/virtualenv Cheers, AT On Sun, Jan 1, 2012 at 10:29 PM, Bart Nagel wrote: > 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

Re: Cheap Django hosting?

2012-01-02 Thread Kenneth Reitz
Heroku! http://blog.heroku.com/archives/2011/9/28/python_and_django/ On Monday, January 2, 2012 at 4:49 AM, Alec Taylor wrote: > Good afternoon, > > I'm looking for some cheap Django hosting, to host all my test sites. > My production sites will be have more expensive, more reliable, faster

Cheap Django hosting?

2012-01-02 Thread Alec Taylor
Good afternoon, I'm looking for some cheap Django hosting, to host all my test sites. My production sites will be have more expensive, more reliable, faster servers+sites; but it would be good to have a cheap host for prototypes. Know of a good one? Thanks for all suggestions, Alec Taylor --

Re: ERP with Supply chain management (incl. POS) and Customer relationship management — What's available?

2012-01-02 Thread Alec Taylor
On Mon, Jan 2, 2012 at 7:39 PM, Venkatraman S wrote: > > On Thu, Dec 15, 2011 at 12:13 AM, Alec Taylor > wrote: >> >> Which libraries (or projects even) will provide the best base for >> building this off? >> > > Well, if you building this from scratch

Re: ERP with Supply chain management (incl. POS) and Customer relationship management — What's available?

2012-01-02 Thread Venkatraman S
On Thu, Dec 15, 2011 at 12:13 AM, Alec Taylor wrote: > Good morning, > > I am building a ERP > [http://en.wikipedia.org/wiki/Enterprise_resource_planning] with > Supply chain management (incl. POS and ecommerce) and Customer > relationship management. > > Which libraries