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

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

2012-12-25 Thread Ryan Blunden
dy and then post their conclusions > on how they got there. problem is that often people go silence when they > achieved the solution. > > also take in consideration that some posts are discussions like this one, > not answers to a specific problem. > > avraham > > >

Re: Django 1.4 manage.py cannot find settings

2012-12-25 Thread Ryan Blunden
I would say stay away using PyCharm to manage your Django application until you're more experienced. Learn to manage your app purely through the command line first. On Tuesday, December 25, 2012 9:28:15 AM UTC-8, Victor Rocha wrote: > > Your welcome! Merry Christmas > > > > On Tue, Dec 25, 2012

Re: debugging issues with settings.py and database (postgres) and syncdb

2012-12-26 Thread Ryan Blunden
Are the user and password fields meant to be blank? Cheers, Ryan On Dec 26, 2012, at 9:40 AM, Dan Richards wrote: > First off, I am a newbie to django, python and postgres - so I suspect I am > missing something obvious, but I am stumped. Any ideas will be gratefully > accepted... > > I ge

Re: debugging issues with settings.py and database (postgres) and syncdb

2012-12-26 Thread Ryan Blunden
Ok. I would try setting the ENGINE value to *sqlite3* and try running *syncdb *again. If that works (which it should), then we can presume it's a configuration access problem with the DB. On 26 December 2012 13:18, Dan Richards wrote: > NO, just me messing around that it made no difference. I

Re: Python shell doesn't launch

2012-12-26 Thread Ryan Blunden
That's Python's standard output when starting an interactive session. On 26/12/2012, at 2:05 PM, rktur...@gmail.com wrote: > Whenever I run "python manage.py shell," I don't get any errors, but I get > the following: > > C:\Python27\Lib\site-packages\django\bin\mysite>python manage.py shell >

Re: Python shell doesn't launch

2012-12-26 Thread Ryan Blunden
Glad to be able to help. I've got a few tips too :) - Use the excellent Django Extensions app which once you add it to your INSTALLED_APPS tuple, will allow you to run python manage.py shell_plus, which automatically imports all of the models for apps. This is great as it's not often that yo

Re: no Polls in the admin page

2012-12-26 Thread Ryan Blunden
Can you provide the contents of your admin.py in your polls app. If you've got the below code, then I'm not sure how that is happening. class PollAdmin(admin.ModelAdmin): fields = ['pub_date', 'question'] admin.site.register(Poll, PollAdmin) Cheers, Ryan On 26/12/2012, at 11:09 AM, Kelketek

Re: no Polls in the admin page

2012-12-27 Thread Ryan Blunden
what applications end up on > the admin page? If so, this may have been enabled by the upstream for my > project, and I need to find a way to disable this. > > On Wednesday, December 26, 2012 5:43:38 PM UTC-6, Ryan Blunden wrote: > Can you provide the contents of your admin.

Re: no Polls in the admin page

2012-12-27 Thread Ryan Blunden
aded, and polls showed up. > > On Thu, Dec 27, 2012 at 1:06 PM, Ryan Blunden wrote: >> I'm not aware of any upstream apps 'masking' the display of other apps in >> the admin root page but I would try to disable all other third party >> (non-Django contrib) ap

Re: Admin page not found error

2012-12-28 Thread Ryan Blunden
It appears that the problem is to do with the Sites app. Have you ran `python manage.py syncdb`? If the sites app is in the INSTALLED_APPS tuple, this takes care of creating a site for you that has an id of 1 which is what will match the default SITE_ID value in your settings.py Things to try:

http://www.deploydjango.com/ - A good resource for advice on project structure and deployment

2012-12-28 Thread Ryan Blunden
I stumbled across http://www.deploydjango.com/ while looking for info on running New Relic monitoring for Django 1.45 in pure WSGI. Looks like a good resource for people starting out with Django and looking for deployment guides. -- You received this message because you are subscribed to the G

Re: Task/project management open source django application?

2012-12-28 Thread Ryan Blunden
That's the only app I could quickly find that's been taken to completion. Unless you're wanting a plug-and-play solution like that, I would just create a todo-list app yourself. If you're not experienced in Django, there are plenty of tutorials out there for building one. If you go this route, b

Re: When I set DEBUG=False, my 404.html doesn't appear

2012-12-29 Thread Ryan Blunden
All I can suggest is to double-check the TEMPLATE_DIRS tuple to ensure the path is correct. On 29/12/2012, at 7:59 AM, "Dae James" wrote: > I put my 404.html into root of the directory specified in TEMPLATE_DIRS. > However, when I visit an inexisting page, the browser's 404.html appears > rat

Re: problem while passing a list of string to javascript in template

2012-12-29 Thread Ryan Blunden
Django presumes all template variables are "unsafe" by default to prevent XSS attacks which is why it's encoded the quotes. Read up on filters and auto-escaping and you'll be able to figure out the rest. Cheers, Ryan On 29/12/2012, at 7:57 AM, "Everest K.C." wrote: > Hello Everyone, > I have

Re: Problem with auto tests Get an error creating the test database: (1044, "Access denied for user 'viewbank_django'@'localhost' to database 'test_viewbank_django'")

2012-12-29 Thread Ryan Blunden
Hey Jeff, There sure is. Just specify a "TEST_NAME" key in the database configuration dictionary and you're good to go. https://docs.djangoproject.com/en/dev/topics/testing/overview/#the-test-database Cheers, Ryan On 29/12/2012, at 7:27 AM, Jeff wrote: > When I run the command - "python mana

Re: Question about URL namespaces

2012-12-29 Thread Ryan Blunden
I've never used this feature but I believe it was created so that for a single Django project, you could provide multiple administration apps. For example, you might have one for customers and one for back office staff that expose different models, have different permissions etc. So to answer y

Re: Bug in inlines.js

2012-12-29 Thread Ryan Blunden
You should post this to https://code.djangoproject.com/newticket Cheers, Ryan On 29/12/2012, at 12:50 AM, Ruud van der Weide wrote: > I just noticed a small bug in inlines.js. In the part where the "addButton" > is included, the following check is used: > if ($this.attr("tagName") == "TR") { >

Re: Admin page not found error

2012-12-29 Thread Ryan Blunden
I added a record to the django_site table (which Django on the first syncdb run for the Sites app) and then I could view the admin fine. So you can either try this or just delete the sqlite.db file and run syncdb again which will also fix the problem. Also, you don't need to specify the databas

Re: Access denied for user

2012-12-29 Thread Ryan Blunden
You either need to create an account for this user with access to the database or check the username and password provided. How are you administering the DB? PHPMyAdmin? On 27/12/2012, at 6:22 AM, El sayed Gamal wrote: > You need to change your mysql database configurations, that's is it. > >

Re: Using django-profiles app twice in one project.

2012-12-29 Thread Ryan Blunden
The AUTH_PROFILE_MODULE functionality is being deprecated in Django 1.5 in favour of being able to create your own custom User models. It sounds like that would be the way to go, especially as the 1.5 release is just around the corner and trunk is normally rock solid. Cheers, Ryan On 27/12/201

Re: Actions after logout

2012-12-29 Thread Ryan Blunden
When you say you haver a "process in place", do you mean code sitting in a file? If you haven't already, create a logout url and hook it up to your code to delete the log out data. Then just call django.contrib.auth.logout() somewhere in your logout view. Cheers, Ryan On 27/12/2012, at 6:50 AM

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-29 Thread Ryan Blunden
Can you provide a single example of one of the fixture objects you're trying to import, as well as the model it corresponds to? On 29/12/2012, at 11:34 AM, Sam Raker wrote: > Hello, > I've got a very tight deadline, and I'm encountering a very frustrating > problem. Every time I try to use loa

Django 1.7 - What are you most excited about?

2014-07-29 Thread Ryan Blunden
Hi everyone, I'm giving a lightening talk at the San Francisco Django meetup tomorrow night about some of the awesome new features in Django 1.7. I wanted to highlight not just what *I think* are the best new features, but what members of the community are most excited about. Would be great to

Re: Django 1.7 - What are you most excited about?

2014-07-30 Thread Ryan Blunden
. Speaking of which, which is your favorite new feature? On Tuesday, July 29, 2014 at 7:08 PM, carlos wrote: > Hi maybe you need read the release note Django 1.7 about the new features > https://docs.djangoproject.com/en/dev/releases/1.7/ > > Cheers :) > > > On Tue, Jul 29,

Re: Django 1.7 - What are you most excited about?

2014-07-30 Thread Ryan Blunden
at 9:41 AM, Ryan Blunden wrote: > Hi Carlos, > > I’ve read all the release notes and already have my short list of what I > think the best features are. But this will be heavily skewed towards the > types of Django apps I create and how I use Django. > > I wanted to

Re: Access to custom fields in view?

2014-07-30 Thread Ryan Blunden
I would use the @property decorator. class template(models.Model): ... @property def responsive(self): try: responsive = templates_propiedad.objects.get(propiedad="features", valor="responsive", plantilla=self) salida = "1" except:

Re: Djamin, a new and clean styles for Django admin.

2014-08-01 Thread Ryan Blunden
This looks pretty clean. I’ll give it a try on a new Django app I’m developing. Have you tested it on Django 1.7? On Friday, August 1, 2014 at 11:13 AM, Herson wrote: > Hey guys, in the last days, i push my new project called Djamin[0], a new and > clean styles for django admin. > > I