ViewDoesNotExist at /

2009-10-16 Thread neri...@gmail.com
I'm not sure why I'm getting this error when the module and view are right where they should be. Traceback: File "/usr/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response 83. request.path_info) File

Re: Django and SSL Deployment using mod_wsgi

2009-10-15 Thread neri...@gmail.com
I'm trying to do the same thing but I'm having problems getting nginx to server over https. I removed all 443 references for apache and added them to my nginx/sites-available/domain.com, so I have a declaration for static content listening on port 80 and then another for ssl on 443. I'm totally

accessing media_url in javascript

2009-10-05 Thread neri...@gmail.com
I was interested in finding out how I would go about accessing django vars in my javascript file i.e., media_url within javascript. Do I need to use a serializer to achieve this? Thanks, Jason --~--~-~--~~~---~--~~ You received this message because you are

django vps hosts

2009-09-23 Thread neri...@gmail.com
I think I'm ready to finally switch to a django vps host due to problems with django on DreamHost. Can anyone recommend a good vps host? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

passenger_wsgi import error

2009-09-19 Thread neri...@gmail.com
I'm trying to use passenger_wsgi on Dreamhost and keeep getting 'An error occurred importing your passenger_wsgi.py'. I think I've located the syntax that is causing the problem but I don't know how to resolve it and Dreamhost doesn't offer any assistance for this. import sys, os INTERP =

creating symlink for django-admin.py with virtulenv

2009-09-17 Thread neri...@gmail.com
I've created my virtual environment but I can't figure out where I can put a symlink for django-admin.py. I tried my virtualenv/bin/ but that doesn't work and, due to the shared hosting, I don't have access to / usr/local/bin/. Thanks, Jason --~--~-~--~~~---~--~~

benefits of {% url %} for breadcrumbs?

2009-09-16 Thread neri...@gmail.com
Is there any benefit to using {% url %} other than retrieving data from the same view? I was looking for a better way to make a breadcrumb menu than hard wiring the urls into every page and came across the {% url %} tag and this post:

Templates not reflecting changes, AGAIN!

2009-08-25 Thread neri...@gmail.com
I had this problem when I started developing this project (my first) on my server space at Dreamhost, so as suggested by a forum member I began developing on my local machine with the django dev server. Why is it that changes made to templates are not reflected upon restarting the server or

Changes not reflected in templates

2009-08-25 Thread neri...@gmail.com
When I make changes to templates they are not showing up upon refresh or restarting the test server, any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

using Max()

2009-08-13 Thread neri...@gmail.com
Hello, Do I need t convert the value returned from Max() to an int, or am I using it incorrectly? I'm getting this template error: Caught an exception while rendering: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right

overriding save()

2009-08-09 Thread neri...@gmail.com
Hello, I'm having trouble overriding save() to change the upload_to attribute of a FileField object. I would like the upload_to attribute to change depending on which user is selected from the select menu i.e., if user testuser24 is selected the upload_to would change to

building directory path with user table

2009-07-17 Thread neri...@gmail.com
Hello, I'm trying to build a photo upload path which corresponds to the selected user i.e., when the user is selected from the drop down the username gets appended to the file upload path dynamically. If you have any ideas I would like to hear them: class Listing(models.Model): user =

creating user directories upon account activation

2009-07-08 Thread neri...@gmail.com
Hello, I'm trying to use mkdir to automatically create a user directory upon successful account activation. I'm attempting to use a try except to catch any error but I don't think I'm using it correctly. Thanks for any help. if SHA1_RE.search(activation_key): try:

sending email from local machine

2009-07-08 Thread neri...@gmail.com
Hello, I'm getting this error when trying to send mail: (61, 'Connection refused'). which global vars do I need to set and what do I need to set them to in order to send mail from my local machine? do I just need to change the defaults for EMAIL_HOST and EMAIL_PORT? Thanks, Jason

modifying or deleting forms and views has no effect on app

2009-06-24 Thread neri...@gmail.com
I've been trying to figure out why modifications made to forms and views have no effect on the app they belong to. I'm using django- registration and wanted to add some additional fields to the registration form but any changes I make, including deleting forms.py or views.py, has no effect on the

django-registration not reflecting changes to forms and views

2009-06-23 Thread neri...@gmail.com
I'm using django-registration and don't understand why changes made to form and views are not reflected in the browser, even after deleting the referenced forms and views. I tried adding more form fields to the registration form and the changes would never show with touch dispatch.fcgi, so I

changes to views and forms are not reflected in browser

2009-06-16 Thread neri...@gmail.com
Hello, I'm trying to make changes to views and forms but when I refresh the browser to view/try the changes nothing seems to have changed. I normally do "touch dispatch.fcgi" which is working with templates and urls but with views and forms I get nothing different. I tried other browsers and

User attribute access from within profile model

2009-05-18 Thread neri...@gmail.com
Hello, I have an Employee profile associated with Users who are staff, how do I return the associated user attributes from within the profile model i.e., 'full_name' from Users? Anytime I try to access the User attributes from within the profile class I get errors: Cannot resolve keyword

App not found

2009-05-12 Thread neri...@gmail.com
Hello, I'm working on my first project and for some reason I keep getting "Error: App with label orders could not be found. Are you sure your INSTALLED_APPS setting is correct?". I've verified this many times by creating dummy apps and running sqlall for them, which works for everything but an

django-registration - newbie - rendering dictionary values

2009-03-30 Thread neri...@gmail.com
Hello, I'm new to django/python and I'm trying to use django-registration in my first app but I'm having problems rendering the activation_key in the email message i.e., the email_message.txt file passed as the first argument to render_to_string() will render it's own content but the dictionary

django-registration - getting activation key into message.

2009-03-27 Thread neri...@gmail.com
Hello, Looking at the code for the create_inactive_user method of models.RegistrationManager it looks like the activation key is auto generated and appended in the message sent to the user, however, the only portion of the message sent is the 'activation_email.txt' file. How do I get the rest of

django-registration - 504 error

2009-03-23 Thread neri...@gmail.com
Hey, does anyone know why I'm getting a "Exception Type: SMTPRecipientsRefused" error using django-registration? Exception Type: SMTPRecipientsRefused Exception Value: {u'neri...@gmail.com': (504, ': Sender address rejected: need fully-qualified address')}

django-registration - outputting errors

2009-03-23 Thread neri...@gmail.com
Hello, I just started my first django project and I'm not sure how to print the errors from non_field_errors(). Here is the snippet from registration.forms.py: def clean(self): """ Verifiy that the values entered into the two password fields match. Note that an error

django-registration - Unhandled Exception

2009-03-16 Thread neri...@gmail.com
Hello, I successfully set up django-registration on my local machine to the point of being able to load a url and attempt to load the template. However, I'm trying to set it up on Dreamhost and keep getting "An unhandled exception was thrown by the application." The only thing I had to do

Unhandled Exception

2009-03-13 Thread neri...@gmail.com
Hello, I successfully set up django-registration on my local machine to the point of being able to load a url and attempt to load the template. However, I'm trying to set it up on Dreamhost and keep getting "An unhandled exception was thrown by the application." The only thing I had to do

PYTHONPATH stuck on 2.3.5

2009-03-10 Thread neri...@gmail.com
Hello, I installed python 2.5.4 using macports and edited my .profile by adding: export PYTHONPATH=/opt/local/var/macports/sources/rsync.macports.org/ release/ports/lang/python25:${PYTHONPATH} ...which wasn't reflected in the shell when env was run, so I tried: export

built-in views - register()

2009-03-10 Thread neri...@gmail.com
Hello, It seems like there should be a built-in register view since there's already login, logout, etc. as well as a UserCreationForm, is there a register view located somewhere? Thanks, J --~--~-~--~~~---~--~~ You received this message because you are

relative url to media dir

2009-03-05 Thread neri...@gmail.com
Hello, How do I keep a relative url to my media directory? When I go to any other view besides the index view i.e., example.com/studio/, example.com/services/, etc, the images defined in my base.html template are missing. I have a "media" symlink in my document root that points to my media

Module not found

2009-03-05 Thread neri...@gmail.com
Hello, I'm trying to map a simple url to a view but keep getting: "No module named current_datetime" when the view is defined in the views.py file. Here is urls.py: from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin