Re: GHRML Documentation

2009-06-13 Thread Emmanuel Surleau
Hi there, > I found a similar template language called GHRML (http:// > www.ghrml.org) for django, but the documentation on it is very scarce. > It's also very young (currently in v0.11), and I'm not sure if it's > even being actively developed anymore. I'm trying to find out if it > supports bas

Re: can you have a flatpage with url of "/" when Debug=True?

2009-06-13 Thread Dj Gilcrease
On Sat, Jun 13, 2009 at 7:24 PM, Michael wrote: > On Sat, Jun 13, 2009 at 1:30 PM, josebrwn wrote: >> >> If Debug = True, you can have a flatpage with URL = "/" that is >> handled by FlatpageFallbackMiddleware: >> >> MIDDLEWARE_CLASSES = ( >>    ... >>    'django.contrib.flatpages.middleware.Flat

amCharts and Django

2009-06-13 Thread Travis Jensen
Anybody using amCharts with Django? I'd like to be able to hook the chart directly up to my model. I found this ( http://aaron.oirt.rutgers.edu/myapp/amcharts/doc) about using amCharts with WHIFF, and it seems like building the descriptor would be straight-forward, but then I'm clueless about the W

Re: GHRML Documentation

2009-06-13 Thread Kenneth Gonsalves
On Sunday 14 June 2009 10:24:52 gte351s wrote: > I'm trying to learn how to work with django after working with ruby on > rails for some time (not too long). Rails has a nice template language > called Haml (http://haml.hamptoncatlin.com/), which I find much more > readable than regular HTML. It i

Re: Why django? Framework design or language

2009-06-13 Thread Kenneth Gonsalves
On Saturday 13 June 2009 20:29:47 Joshua Partogi wrote: > a) the language itself and they already master python, so they choose > django b) the design and the feature of the framework itself that fits > their needs I needed a framework using python and chose django as it was the first one I saw

Re: Is Django easy to learn and use for my web project?

2009-06-13 Thread iyank7
> same skill set as you and I learnt django and went into production in 9 days > (I had a deadline to meet and only missed it by 2 days) When i started to learn, i choose the stable version ,but with the need to use admin action i jump to dev version, an of course its many documentation i must

Re: Determining the type of a form field within a template

2009-06-13 Thread Alex Gaynor
On Sun, Jun 14, 2009 at 12:08 AM, Thomas Sutton wrote: > > Hi Jashugan, > > On 13/06/2009, at 12:28 AM, Jashugan wrote: > > > > > On Jun 11, 8:49 pm, "thsut...@gmail.com" wrote: > > > >> > >> This has been trivial in every other framework I've used and I'm sure > >> it is in Django as well, but

Re: Determining the type of a form field within a template

2009-06-13 Thread Thomas Sutton
Hi Jashugan, On 13/06/2009, at 12:28 AM, Jashugan wrote: > > On Jun 11, 8:49 pm, "thsut...@gmail.com" wrote: > >> >> This has been trivial in every other framework I've used and I'm sure >> it is in Django as well, but I'm completely stumped. Is there any way >> to do this which doesn't require

GHRML Documentation

2009-06-13 Thread gte351s
I'm trying to learn how to work with django after working with ruby on rails for some time (not too long). Rails has a nice template language called Haml (http://haml.hamptoncatlin.com/), which I find much more readable than regular HTML. It is also indent oriented, which all python fans must find

openid

2009-06-13 Thread Vance Dubberly
So after looking around a bit it looks like simonwilsons openid package is pretty where it's at for openid in django. Question is: is the package that hasn't been touched 2 years django_openidconsumer the right one to use or has django_openid come along far enough to implement/test. I note that

Re: Is Django easy to learn and use for my web project?

2009-06-13 Thread koepked
I've only been using django for a few weeks. I had NO prior Python experience. I've been cracking a couple of hours a day on a site that aggregates RSS feeds and I've already got it working nicely. I've played with PHP and Rails before, and django feels to me like it's the easiest to use. I'm amaz

Re: Is Django easy to learn and use for my web project?

2009-06-13 Thread Kenneth Gonsalves
On Sunday 14 June 2009 05:59:30 kakaruk...@gmail.com wrote: > I'm an intermediate level python programmer, a beginner in perl, a > total novice in php & javascript. I'm also an intermediate level Linux > user. I have designed and maintained websites before, some sites in > HTML/CSS, a blog using a

Re: unsubscribe

2009-06-13 Thread Kenneth Gonsalves
On Saturday 13 June 2009 18:37:25 Lucas Hazel wrote: > From: Lucas Hazel > To: django-users@googlegroups.com > > -- > Lucas Hazel didn't work ;-) -- regards kg http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Amazon S3 for File Uploads

2009-06-13 Thread Jonas Galvez
Max Clark wrote: > I want to use Amazon S3 for file uploads from users (models.FileField). > I have been searching and have come across these > three plugins/examples to use S3 with django... > > http://code.djangoproject.com/wiki/AmazonSimpleStorageService > http://www.sourceguru.net/archives/177

model inheritance and admin labeling

2009-06-13 Thread brianglass
I am trying to create an abstract base class for a hierarchy. One of the fields in the base class is child_nodes, refering to 'self'. In the sub-class I cannot seem to find a way to control the labeling of the field in the admin. No matter what I do it comes up as 'Child nodes'. I want to change i

Re: can you have a flatpage with url of "/" when Debug=True?

2009-06-13 Thread Michael
On Sat, Jun 13, 2009 at 1:30 PM, josebrwn wrote: > > If Debug = True, you can have a flatpage with URL = "/" that is > handled by FlatpageFallbackMiddleware: > > MIDDLEWARE_CLASSES = ( >... >'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', > ) > > If Debug = False, the fl

Is Django easy to learn and use for my web project?

2009-06-13 Thread kakaruk...@gmail.com
Hi All, I wish to learn something to create a website with the following apps: a wiki, a blog, a site search, some social networking functions, a page where a user may post question and other users may post answers, e-commerce, other tiny functions that need to be coded manually. The site needs m

Re: View arguments via url are not being passed to the view.

2009-06-13 Thread Antoni Aloy
2009/6/13 wilby : > > Hi group, > > I am having a problem getting text in the url to be passed as > arguments to my view. > > My defined urls are: > > > (r'^notes/', 'notes'), Shoud be (r'^notes/$', 'notes'), if you mantain as it is it matches also notes/a/0/ so the second url never captures the

database backends timing out

2009-06-13 Thread James Martin
I'm having an interesting problem. After inserting a bunch of records into my database ( about 400,000), it the database starts refusing connections. Even after restarting the database daemon, I can not query the database (django lets me query, but returns nothing in the querysets). The only me

filtering between two different tables

2009-06-13 Thread Elad Zucker
Hi, I am pretty new to django and python as well. I am working on my first django project and trying to find the best approch to solve the following issue : On my project I do have a voting system. the votes are for a specific item. Each user can vote once per item. What I am trying to do is that

Error loading MySQLdb module: libmysqlclient_r.so.16 - Help please

2009-06-13 Thread NoCleverName
So I'm having an issue getting Django to work with MySQL. After I log into my Django site, I get the following error: ImproperlyConfigured: Error loading MySQLdb module: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory The error is being thrown from site-packag

Re: Error loading MySQLdb module: libmysqlclient_r.so.16 - Help please

2009-06-13 Thread NoCleverName
This is the author again. Of course, 10 minutes after I post a question, I find the solution. (After hours of searching beforehand) If anyone else has this problem, the solution for me was: edit /etc/ld.so.conf add the line: /usr/local/mysql/lib then run /etc/ldconfig Fixed the problem righ

can you have a flatpage with url of "/" when Debug=True?

2009-06-13 Thread josebrwn
If Debug = True, you can have a flatpage with URL = "/" that is handled by FlatpageFallbackMiddleware: MIDDLEWARE_CLASSES = ( ... 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', ) If Debug = False, the flatpage will 404. Is there a way to have a flatpage as your site's

Re: Is it bad to rely on db exceptions?

2009-06-13 Thread koepked
get_or_create() is probably perfect, I just haven't come across it in the djangobook yet. I'm a newb. Gonna have to start combing the docs a little more thoroughly! Thanks for the suggestion! On Jun 13, 4:32 pm, Christian Schilling wrote: > the most obvious reason why this is bad is: it will sto

ANN: django-currencies 0.1

2009-06-13 Thread Panos Laganakos
http://code.google.com/p/django-currencies/ "django-currencies allows you to define different currencies, and includes template tags/filters to allow easy conversion between them." The package is registered on cheezeshop, you can give a try by `pip install django-currencies` (or easy_install).

Re: Debugging methodology suggestion on PIL file upload problems

2009-06-13 Thread Angel Cruz
Finally getting back into the swing of things in studying django. I discovered 'Werkzeug debugger' and found out I was doing many things wrong (saving to wrong place, trying to open the Image prior to saving it locally, etc.). Great debugging tool (wish I had an IDE, but this is better than print

Re: Why django? Framework design or language

2009-06-13 Thread Masklinn
On 13 Jun 2009, at 16:59 , Joshua Partogi wrote: > Hi all, > I know that this questions rise up often in this list, but I have a > different side of view about the reason to choose django. > > I was wondering whether most people here choose django because of: > > a) the language itself and they al

Re: Why django? Framework design or language

2009-06-13 Thread Jochem Berndsen
Joshua Partogi wrote: > Hi all, > I know that this questions rise up often in this list, but I have a > different side of view about the reason to choose django. > > I was wondering whether most people here choose django because of: > > a) the language itself and they already master python, so t

Why django? Framework design or language

2009-06-13 Thread Joshua Partogi
Hi all, I know that this questions rise up often in this list, but I have a different side of view about the reason to choose django. I was wondering whether most people here choose django because of: a) the language itself and they already master python, so they choose django b) the design and t

Re: Is it bad to rely on db exceptions?

2009-06-13 Thread Christian Schilling
the most obvious reason why this is bad is: it will stop working when you switch to an other database backend. but aside from that: what are you trying to archive? looks a lot like what the get_or_create() shortcut does... On Jun 13, 8:42 am, koepked wrote: > Is it bad practice to rely on db exc

unsubscribe

2009-06-13 Thread Lucas Hazel
-- Lucas Hazel --~--~-~--~~~---~--~~ 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

TemplateDoesNotExist: 500.html during deployment

2009-06-13 Thread srk
Hello! I managed to deploy my django project in production except static media. When I try to access http://localhost/adminmedia/account.js (my static media file), I get colorful page with stack trace of django.template.TemplateDoesNotExist exception and TemplateDoesNotExist: 500.html in apache2

View arguments via url are not being passed to the view.

2009-06-13 Thread wilby
Hi group, I am having a problem getting text in the url to be passed as arguments to my view. My defined urls are: (r'^notes/', 'notes'), (r'^notes/(?Pa|e|d{1})/(?P[0-9]*)/$', 'notes'), My view is as follows: @login_required() def notes(request, action=None, id=0): if action == 'a':

Re: Newbie question on ContentTypes and Generic Relations

2009-06-13 Thread Daniel Roseman
On Jun 12, 8:54 pm, Rana wrote: > Hi, > > I am trying to modify a blog and article model that will both display > data from a related products model. I read that the way I should do > this is through the ContentTypes framework and generic foreign > relations. I would be grateful for some guidance