Re: Setting urls from project

2012-12-24 Thread Matthew Edwards
I'm still learning Django myself, but I believe each url should end with '$' in order to stop the regex match at the forward slash. So your new URIs would be: url(r'^cadastro/$', include('contact.urls')), url(r'^contato/$', include('contact.urls')), url(r'^sobre/$', include('contact.urls')), url(

Layered Dropdown List

2012-12-24 Thread CodingDaddy
Hello, I would like to ask your advice on how I can implement layered dropdown list. Let's say I have three tables, one called Country, another called State, and the other called 'City' And you are adding information about a particular city in admin site. So I want to have a dropdown like thie

Django-allauth: ImproperlyConfigured at /accounts/login/ No Facebook app configured: please add a SocialApp using the Django admin

2012-12-24 Thread Manu
Hi, I'm facing this error when I access 'accounts/login/'. Posted a question here - http://stackoverflow.com/q/14019017/1218897 I would really appreciate any help with it. Thanks in advance. -Manu -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Layered Dropdown List

2012-12-24 Thread Xavier Ordoquy
Hi, Le 24 déc. 2012 à 08:43, CodingDaddy a écrit : > I would like to ask your advice on how I can implement layered dropdown list. > Let's say I have three tables, one called Country, another called State, and > the other called 'City' > And you are adding information about a particular city in

django ratings problem

2012-12-24 Thread sri
Hi, I am trying to add django-ratings to my app and it keeps falling over when i try to add a rating. The steps i have followed is below 1) pip install django-ratings 2) Add 'djangoratings' to my settings.py 3) Add a field in my model class with field name "cust_rating = RatingField(ra

Re: Layered Dropdown List

2012-12-24 Thread carlos
maybe this app help you https://github.com/digi604/django-smart-selects Cheers On Mon, Dec 24, 2012 at 10:47 AM, Xavier Ordoquy wrote: > Hi, > > Le 24 déc. 2012 à 08:43, CodingDaddy a écrit : > > I would like to ask your advice on how I can implement layered dropdown > list. > Let's say I have

Re: Layered Dropdown List

2012-12-24 Thread CodingDaddy
Hi, Xavier, Thank you for pointing that out. I was not specific enough but what I want to do is to dynamically create this nested select from DB table. In that case, the documentation pointed out to use Foreign Key instead. CodingDaddy On Tuesday, December 25, 2012 1:47:24 AM UTC+9, Xavier Or

Re: Layered Dropdown List

2012-12-24 Thread CodingDaddy
Thank you Sacrac I will give it a try! On Tuesday, December 25, 2012 5:38:24 AM UTC+9, sacrac wrote: > > maybe this app help you https://github.com/digi604/django-smart-selects > > Cheers > > > On Mon, Dec 24, 2012 at 10:47 AM, Xavier Ordoquy > > > wrote: > >> Hi, >> >> Le 24 déc. 2012 à 08:43,

Re: ImportError at/ No module name

2012-12-24 Thread Peter of the Norse
The error is pretty clear: It can't find /home/username/djangosites/djangopractice/blog/__init__.py Make sure that file exists. Try running `manage.py shell` and `import blog`. Also, make sure that the files are readable by your web server, e.g. apache. On Dec 20, 2012, at 9:55 PM, djangobie wr

Re: ImportError at/ No module name

2012-12-24 Thread Ryan Blunden
Did this fix the problem for you? Did you create the application using `python manage.py startapp blog`? If so, that would've created the blog applicationas a Python module. The __init__.py is required so Pyth

Append [RESOLVED] to your post subject if you got to a working solution

2012-12-24 Thread Ryan Blunden
Hi everyone, After this very revealing post, I want to do what I can to support new people coming to Django. Like many Django developers and supporters, I'm busy and so to make it as easy as possible to provide

Re: django ratings problem

2012-12-24 Thread Ryan Blunden
Can you share the error and the stack trace at http://pastie.org/. Sharing environmental information such as OS, Python version, Django version, reported django-ratings app version is also critical in helping your figure out what the issue is. Cheers, Ryan On Monday, December 24, 2012 10:35:44