Re: newbie django hosting question

2012-03-14 Thread Scott Macri
I decided to go with webfraction based on your recommendation. I just setup my account and will let you know how it goes. Thanks. :) On Tue, Mar 13, 2012 at 11:27 AM, NENAD CIKIC wrote: > OK, thanks. > > On 13 ožu, 16:11, Bill Freeman wrote: >> I'm

password_reset email template issue

2012-03-11 Thread Scott Macri
I'm having an issue with my email template for the password_reset view. For some reason I keep getting the following instead of my template text: You're receiving this e-mail because you requested a password reset for your user account at example.com. Please go to the following page and choose a

Re: built-in-views trouble

2012-03-11 Thread Scott Macri
/site-packages/django/core/urlresolvers.py in _get_callback, line 170 Python Executable: /usr/bin/python Python Version: 2.6.1 On Sun, Mar 11, 2012 at 12:01 PM, Scott Macri <scottma...@gmail.com> wrote: > Django version is 1.3.1 final. > > If I call /accounts/password_reset/  I ge

Re: built-in-views trouble

2012-03-11 Thread Scott Macri
ot; % > "Could not import %s. View does not exist in module %s." % > "Could not import %s. Parent module %s does not exist." % > > Alan > > > On Saturday, March 10, 2012 6:56:30 PM UTC-5, hack wrote: >> >> Strange.  The same issue occurs with th

Re: built-in-views trouble

2012-03-10 Thread Scott Macri
Strange. The same issue occurs with the password_reset view as well. On Sat, Mar 10, 2012 at 5:05 PM, Scott Macri <scottma...@gmail.com> wrote: > That's exactly what I was thinking.  So I changed > 'django.contrib.auth.views.change_password' to > 'django.contrib.auth

Re: built-in-views trouble

2012-03-10 Thread Scott Macri
e1g...@gmail.com> wrote: > I would expect ViewDoesNotExist to not be sensitive to the template.  It > sounds like the urlconf is specifying a view function that does not exist > (at least in the way and in the place that it is specified). > > On Sat, Mar 10, 2012 at 3:07 PM,

Re: built-in-views trouble

2012-03-10 Thread Scott Macri
Even explicitly setting the template name causes a ViewDoesNotExist error to occur. url(r'^accounts/password/change/$', 'django.contrib.auth.views.password_change',{'template_name':'registration/password_change_form.html',}), Anyone have any ideas? Thanks. On Fri, Mar 9, 2012 at 1:32 PM, Scott

built-in-views trouble

2012-03-09 Thread Scott Macri
Being new to django I am having trouble getting the built in views to work. After several hours I finally got the login/logout views to work, now I am not able to get the profile, or any other built in views working. I am attempting to configure the change_password view. I have a custom urls.py

Re: urls.py and login forms

2012-03-09 Thread Scott Macri
Finally got it working. The issue was due to the url for the form method within the example template on the django site. I removed that and everything works great now. Thanks. On Fri, Mar 9, 2012 at 9:29 AM, Tom Evans <tevans...@googlemail.com> wrote: > On Fri, Mar 9, 2012 at 2:11

Re: urls.py and login forms

2012-03-09 Thread Scott Macri
: /usr/bin/python Python Version: 2.6.1 On Fri, Mar 9, 2012 at 9:02 AM, Scott Macri <scottma...@gmail.com> wrote: > Unfortunately changing that breaks my entire app so none of my views > work anymore. > > On Thu, Mar 8, 2012 at 11:34 PM, vikalp sahni <vikalpsa...@gmail.com>

Re: urls.py and login forms

2012-03-09 Thread Scott Macri
https://docs.djangoproject.com/en/dev/topics/http/urls/#the-view-prefix > > Hope this helped. > > > Regards, > //Vikalp > > On Fri, Mar 9, 2012 at 7:23 AM, Scott Macri <scottma...@gmail.com> wrote: >> >> How am I supposed to configure access to the built

Re: send_mail problem

2012-03-08 Thread Scott Macri
I switched to make sure it wasn't the database. On Thu, Mar 8, 2012 at 5:49 PM, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote: > On Thu, 8 Mar 2012 13:59:02 -0500, Scott Macri <scottma...@gmail.com> > declaimed the following in gmane.comp.python.django.user: > > >

urls.py and login forms

2012-03-08 Thread Scott Macri
How am I supposed to configure access to the built in django login and password forms after changing my urls.py settings? I've setup the main project urls.py file like so: url(r'^myapp/',include('myapp.urls')), I now have a urls.py file under myapp/urls.py setup similar to the following:

Re: send_mail problem

2012-03-08 Thread Scott Macri
like, 'I love my veggies', everything seems to work fine. On Thu, Mar 8, 2012 at 1:59 PM, Scott Macri <scottma...@gmail.com> wrote: > OK, I ran the debugger and here is what I came up with: > > -> print "CHECK MESSAGE :" > (Pdb) repr(email_message) > "u'test1'&q

Re: send_mail problem

2012-03-08 Thread Scott Macri
pt the email then works. This is a very strange issue. On Thu, Mar 8, 2012 at 1:25 PM, Scott Macri <scottma...@gmail.com> wrote: > Nope, I guess that only fixed it for a minute. > > On Thu, Mar 8, 2012 at 1:21 PM, Scott Macri <scottma...@gmail.com> wrote: >> I'm very

Re: send_mail problem

2012-03-08 Thread Scott Macri
Nope, I guess that only fixed it for a minute. On Thu, Mar 8, 2012 at 1:21 PM, Scott Macri <scottma...@gmail.com> wrote: > I'm very new to python and django.  Thanks for the tip.  I was trying > to figure out how to set break points. > > I figured out what the problem was.

Re: send_mail problem

2012-03-08 Thread Scott Macri
, Mar 8, 2012 at 12:47 PM, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Mar 8, 2012 at 4:58 PM, Scott Macri <scottma...@gmail.com> wrote: >> I've come to the conclusion that send_mail and send_mass_mail cannot >> be used with sqlite due to a but with the message tex

Re: send_mail problem

2012-03-08 Thread Scott Macri
t 10:49 PM, Scott Macri <scottma...@gmail.com> wrote: > UGH, I guess that wasn't the issue.  Its back again.  I don't know > what the deal is. > > On Wed, Mar 7, 2012 at 9:29 PM, Scott Macri <scottma...@gmail.com> wrote: >> I just figured this one out: >> >> B

Re: send_mail problem

2012-03-07 Thread Scott Macri
UGH, I guess that wasn't the issue. Its back again. I don't know what the deal is. On Wed, Mar 7, 2012 at 9:29 PM, Scott Macri <scottma...@gmail.com> wrote: > I just figured this one out: > > Basically in the view I had the following just before calling the save > meth

Re: send_mail problem

2012-03-07 Thread Scott Macri
was actually being stored in the correct field in the database, and was coming out correctly, but something went haywire when I tried to wrap it in a message. On Wed, Mar 7, 2012 at 9:13 PM, Scott Macri <scottma...@gmail.com> wrote: > This one never sends the message: > > print object.email

Re: send_mail problem

2012-03-07 Thread Scott Macri
e data from the database it > works fine. > > On Wed, Mar 7, 2012 at 8:51 PM, Scott Macri <scottma...@gmail.com> wrote: >> I'm having a strange issue with send_mail.  I created a py script with >> a function to call send_mail.  If I call the method via IDLE it works >> gr

Re: send_mail problem

2012-03-07 Thread Scott Macri
.CharField(max_length = 750,blank=True) I then do the following call message = object.email_message and pass it to the send_mail function. For some reason the message never gets sent. If I do the call without getting the data from the database it works fine. On Wed, Mar 7, 2012 at 8:51 PM, Scott Macr

send_mail problem

2012-03-07 Thread Scott Macri
I'm having a strange issue with send_mail. I created a py script with a function to call send_mail. If I call the method via IDLE it works great. If I call the method with the exact same way with the exact same data via another script the message never gets sent. The strange thing is that an

Re: sending django email via gmail

2012-03-06 Thread Scott Macri
Got this resolved. The issue was that I needed to close my idle session and reopen it after changing my settings. On Tue, Mar 6, 2012 at 4:05 PM, Scott Macri <scottma...@gmail.com> wrote: > Here is my telnet response: > > Trying 74.125.45.109... > Connected to gmail-smt

Re: sending django email via gmail

2012-03-06 Thread Scott Macri
. Thus, I know it's not a port conflict. On Tue, Mar 6, 2012 at 1:09 PM, Tom Evans <tevans...@googlemail.com> wrote: > On Tue, Mar 6, 2012 at 5:28 PM, Scott Macri <scottma...@gmail.com> wrote: >> I'm attempting to send a message from my django app via gmail and keep >> g

sending django email via gmail

2012-03-06 Thread Scott Macri
I'm attempting to send a message from my django app via gmail and keep getting a connection refused error even though I know the parameters are correct. settings.py EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = '587' EMAIL_USE_TLS = True EMAIL_HOST_USER = 'myu...@gmail.com' EMAIL_HOST_PASSWORD =

Re: help with time

2012-03-02 Thread Scott Macri
gt; template, since django render one form up to the attribute of the form . > > 2012/3/3 Scott Macri <scottma...@gmail.com> >> >> OK, I'm experimenting with time.  To be specific datetime.time.  My >> goal is to generate a list of times in a pull down menu so when the

help with time

2012-03-02 Thread Scott Macri
OK, I'm experimenting with time. To be specific datetime.time. My goal is to generate a list of times in a pull down menu so when the user saves the form it populates the db with the proper type. In order to use a model with choices, which is what I've done, I have to do something like this:

Re: Automated Processes

2012-03-02 Thread Scott Macri
Awsome, cron it is! Thanks. :) On Fri, Mar 2, 2012 at 11:48 PM, Russell Keith-Magee <russ...@keith-magee.com> wrote: > > On 03/03/2012, at 4:10 AM, Scott Macri wrote: > >> I'm trying to figure out the best way to create an automated in a >> python/django web

Re: Automated Processes

2012-03-02 Thread Scott Macri
Sorry, that should read "create an automated process". On Fri, Mar 2, 2012 at 3:10 PM, Scott Macri <scottma...@gmail.com> wrote: > I'm trying to figure out the best way to create an automated in a > python/django web application.  My intention is to send an email > me

Automated Processes

2012-03-02 Thread Scott Macri
I'm trying to figure out the best way to create an automated in a python/django web application. My intention is to send an email message in the future based on the given future date/time. What is the best approach to do this? I was thinking of creating a cron job and a python script, but I

Re: Admin Module

2012-02-25 Thread Scott Macri
Disregard this post. The issue was garbage urls I forgot to delete from the url.py file. On Sun, Feb 26, 2012 at 12:30 AM, scott macri <hacktori...@gmail.com> wrote: > I'm having an issue getting my admin module to work.  I am getting the > following error.  Any thoug

Admin Module

2012-02-25 Thread scott macri
I'm having an issue getting my admin module to work. I am getting the following error. Any thoughts? Thanks. TemplateSyntaxError at /hcp/admin/ Caught ViewDoesNotExist while rendering: Tried get_notes_health in module hcp.views. Error was: 'module' object has no attribute 'get_notes_health'

Re: import problem

2012-02-16 Thread Scott Macri
would do that later tonight. > > Furbee > > > On Thu, Feb 16, 2012 at 2:04 PM, Dennis Lee Bieber <wlfr...@ix.netcom.com> > wrote: >> >> On Thu, 16 Feb 2012 13:41:32 -0500, Scott Macri <scottma...@gmail.com> >> wrote: >> >> >I don't b

Re: import problem

2012-02-16 Thread Scott Macri
= datetime.date(int(some_date[0:4]),int(some_date[5:7]),int(some_date[8:10])) As soon as the code gets to the line containing start_date it fails. On Thu, Feb 16, 2012 at 11:38 AM, DrBloodmoney <drbloodmo...@gmail.com> wrote: > On Thu, Feb 16, 2012 at 9:20 AM, Scott Macri <scottma...@gmai

Re: import problem

2012-02-16 Thread scott macri
DrBloodmoney I not sure what you mean by circular imports. datetime is the only import I have in this file. Yes Furbeenator it is a 'datetime' is not defined error. I'll post the entire error message tonight when I get home. My website directory is mn and my app directory is hcp. I'm trying

Re: import problem

2012-02-16 Thread Scott Macri
Oh, the other thing is that if I run the exact same code in my idle shell within the hcp app all the imports work fine. On Thu, Feb 16, 2012 at 9:20 AM, Scott Macri <scottma...@gmail.com> wrote: > DrBloodmoney I not sure what you mean by circular imports.  datetime > is the only i

Re: import problem

2012-02-16 Thread Scott Macri
DrBloodmoney I not sure what you mean by circular imports. datetime is the only import I have in this file. Yes Furbeenator it is a 'datetime' is not defined error. I'll post the entire error message tonight when I get home. My website directory is mn and my app directory is hcp. I'm trying