Re: error in the "Writing your first Django app, part 2"

2012-09-06 Thread ecs1749
Nevermind.  I think I confused myself in doing step 3 before 2.

On Thursday, September 6, 2012 11:44:30 AM UTC-7, Maheshakya Wijewardena 
wrote:
>
> I've followed the instruction & proceeded upto the point where it comes to 
> activate the admin site. But I get the following error when I load the page 
> "  http://127.0.0.1:8000/admin/";
>
> CookieError at /admin/
>
> Invalid Attribute httponly
>
> Request Method:GETRequest URL:http://127.0.0.1:8000/admin/Django Version:
> 1.5Exception Type:CookieErrorException Value:
>
> Invalid Attribute httponly
>
> Exception Location:C:\Python25\lib\Cookie.py in __setitem__, line 435Python 
> Executable:C:\Python25\python.exePython Version:2.5.0Python Path:
>
> ['C:\\django\\mysite',
>  'C:\\Windows\\system32\\python25.zip',
>  'C:\\Python25\\DLLs',
>  'C:\\Python25\\lib',
>  'C:\\Python25\\lib\\plat-win',
>  'C:\\Python25\\lib\\lib-tk',
>  'C:\\Python25',
>  'C:\\Python25\\lib\\site-packages']
>
> Server time:Fri, 7 Sep 2012 00:08:09 +0530
>
>
> This is the traceback 
>
>
> File "C:\Python25\lib\site-packages\django\core\handlers\base.py" in 
> get_response
>   188. response = middleware_method(request, response)
> File "C:\Python25\lib\site-packages\django\contrib\sessions\middleware.py" 
> in process_response
>   42. httponly=settings.SESSION_COOKIE_HTTPONLY or 
> None)
> File "C:\Python25\lib\site-packages\django\http\__init__.py" in set_cookie
>   645. self.cookies[key]['httponly'] = True
> File "C:\Python25\lib\Cookie.py" in __setitem__
>   435. raise CookieError("Invalid Attribute %s" % K)
>
> Exception Type: CookieError at /admin/
> Exception Value: Invalid Attribute httponly
>
>
> What should I do?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/D_6ir7AbDZcJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: error in the "Writing your first Django app, part 2"

2012-09-06 Thread ecs1749
I have a different error:

ViewDoesNotExist at /admin/

Could not import polls.views.vote. View does not exist in module polls.views.

Request Method:GETRequest URL:http://127.0.0.1:8000/admin/Django Version:
1.4.1Exception Type:ViewDoesNotExistException Value:

Could not import polls.views.vote. View does not exist in module polls.views.

Exception 
Location:/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py 
in get_callable, line 101Python Executable:/usr/bin/pythonPython Version:
2.7.3Python Path:

['/www/mysite',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages/gtk-2.0']

Server time:Thu, 6 Sep 2012 15:44:46 -0700
On Thursday, September 6, 2012 11:44:30 AM UTC-7, Maheshakya Wijewardena 
wrote:
>
> I've followed the instruction & proceeded upto the point where it comes to 
> activate the admin site. But I get the following error when I load the page 
> "  http://127.0.0.1:8000/admin/";
>
> CookieError at /admin/
>
> Invalid Attribute httponly
>
> Request Method:GETRequest URL:http://127.0.0.1:8000/admin/Django Version:
> 1.5Exception Type:CookieErrorException Value:
>
> Invalid Attribute httponly
>
> Exception Location:C:\Python25\lib\Cookie.py in __setitem__, line 435Python 
> Executable:C:\Python25\python.exePython Version:2.5.0Python Path:
>
> ['C:\\django\\mysite',
>  'C:\\Windows\\system32\\python25.zip',
>  'C:\\Python25\\DLLs',
>  'C:\\Python25\\lib',
>  'C:\\Python25\\lib\\plat-win',
>  'C:\\Python25\\lib\\lib-tk',
>  'C:\\Python25',
>  'C:\\Python25\\lib\\site-packages']
>
> Server time:Fri, 7 Sep 2012 00:08:09 +0530
>
>
> This is the traceback 
>
>
> File "C:\Python25\lib\site-packages\django\core\handlers\base.py" in 
> get_response
>   188. response = middleware_method(request, response)
> File "C:\Python25\lib\site-packages\django\contrib\sessions\middleware.py" 
> in process_response
>   42. httponly=settings.SESSION_COOKIE_HTTPONLY or 
> None)
> File "C:\Python25\lib\site-packages\django\http\__init__.py" in set_cookie
>   645. self.cookies[key]['httponly'] = True
> File "C:\Python25\lib\Cookie.py" in __setitem__
>   435. raise CookieError("Invalid Attribute %s" % K)
>
> Exception Type: CookieError at /admin/
> Exception Value: Invalid Attribute httponly
>
>
> What should I do?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/MxgP3n2Ik-YJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Development server won't work from a shared web host

2012-09-06 Thread ecs1749
Well, that's almost true :-)

Granted - it's a lot easier so far but I had to track down several things 
(and a whole lot of "here's how" tips) that were taken for granted (like 
pip which require easy_install so on and so forth).  

In retrospect, I recommend future newbee to take this route: start with 
Oracle's VirtualBox and build a Ubuntu virtual machine,   Enable the 
desktop, mySQL, and SSLServer.  Get easy_install which comes with pip.  
Install Django via pip, add Python-mySQL and Mako - then off you go.  It's 
a whole lot easier this way.  

On Thursday, September 6, 2012 11:21:57 AM UTC-7, Kurtis wrote:
>
> Hey,
>
> All you should need to get through the Django Tutorial is Python and 
> Django. During development you can use SQLite which is built in and doesn't 
> need any third-party libraries. Good luck!
>
> On Thu, Sep 6, 2012 at 1:23 PM, ecs1749 >wrote:
>
>> Thanks.  I might as well bite bits of it.  It's tough going because there 
>> are so many dependencies.  It's hard to gather all of the right packages 
>> just to get through the Django tutorial.
>>
>>
>> On Thursday, September 6, 2012 6:59:02 AM UTC-7, Demian Brecht wrote:
>>
>>> You *can* install Django on Linux, Mac or Windows. Choose the 
>>> environment that you're most accustomed to if you're just trying to 
>>> get things done. However, if you want to learn Linux at the same time 
>>> (at least, bits of it), then I fully endorse going down that path. 
>>>
>>> On Wed, Sep 5, 2012 at 9:19 PM, ecs1749  wrote: 
>>> > 
>>> > Ok, ok.  I now have a Ubuntu/server with a Ubuntu desktop running 
>>> using oracle vm virtualbox.   I know almost nothing about Linux.  I don't 
>>> even know how to ssh to this beast sitting in front of me.  I  hope this is 
>>> a start... 
>>> > 
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/1pD4k3PdhtEJ.
>>
>> To post to this group, send email to django...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> django-users...@googlegroups.com .
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/jFShLRdyd-8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Development server won't work from a shared web host

2012-09-06 Thread ecs1749
Thanks.  I might as well bite bits of it.  It's tough going because there 
are so many dependencies.  It's hard to gather all of the right packages 
just to get through the Django tutorial.

On Thursday, September 6, 2012 6:59:02 AM UTC-7, Demian Brecht wrote:
>
> You *can* install Django on Linux, Mac or Windows. Choose the 
> environment that you're most accustomed to if you're just trying to 
> get things done. However, if you want to learn Linux at the same time 
> (at least, bits of it), then I fully endorse going down that path. 
>
> On Wed, Sep 5, 2012 at 9:19 PM, ecs1749 > 
> wrote: 
> > 
> > Ok, ok.  I now have a Ubuntu/server with a Ubuntu desktop running using 
> oracle vm virtualbox.   I know almost nothing about Linux.  I don't even 
> know how to ssh to this beast sitting in front of me.  I  hope this is a 
> start... 
> > 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/1pD4k3PdhtEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Development server won't work from a shared web host

2012-09-05 Thread ecs1749
Ok, ok.  I now have a Ubuntu/server with a Ubuntu desktop running using 
oracle vm virtualbox.   I know almost nothing about Linux.  I don't even 
know how to ssh to this beast sitting in front of me.  I  hope this is a 
start...

On Tuesday, September 4, 2012 9:19:57 AM UTC-7, Marcin wrote:
>
> You don't have a computer that you can develop on at all? How are you 
> writing this email? Developing over ssh is going to be a huge pain.
>
> Now, you *maybe* can use the runserver command - if you do add the --help 
> switch it will tell you how to run it to bind to a particular interface and 
> port. It maybe that you can bind it to a port on the localhost interface 
> (and then tunnel that over ssh), or you may be able to have your host 
> allocate you specific ports which you can use to run any kind of web server 
> you like. 
>
> While runserver shouldn't be used for production, I have used it to 
> diagnose specific problems in the production environment, which inevitably 
> will differ from development when using a shared host. This is, of course, 
> fairly insecure, and could even be illegal depending on your data 
> protection obligations. 
>
> On Tue, Sep 4, 2012 at 12:03 PM, ecs1749  >wrote:
>
>> I don't have a local machine I can use to learn Django - just a personal 
>> acct from a shared host.  The question I kept asking was:  How do I get 
>> into admin and follow the tutorial without the development server because 
>> the tutorial doesn't tell me that.
>>
>> Regards,
>>
>>
>> On Monday, September 3, 2012 11:13:53 PM UTC-7, Daniel Roseman wrote:
>>>
>>> On Tuesday, 4 September 2012 03:32:08 UTC+1, ecs1749 wrote:
>>>>
>>>> Thanks for the reply.  Yes, I saw that message.  I am a bit lost where 
>>>> to go next if I completely ignore that tutorial regarding doing admin from 
>>>> the development server (which I don't have).  Do I dive into tutorial   #3 
>>>> and hope that it will pick up the admin stuff later when it gets to talk 
>>>> about wsgi?  Or is there a "here's what you do if you don't have a 
>>>> development server" tutorial somewhere?
>>>>
>>>>
>>> You should not be doing the tutorial - or any development - on your 
>>> server. Install Django locally and do it there, then deploy when you are 
>>> ready and not before.
>>>
>>> However, you are wrong to assume that the admin console has anything to 
>>> do with the development server - it works just fine with any server.
>>> --
>>> DR.
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/UhMFGZB6YS0J.
>>
>> To post to this group, send email to django...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> django-users...@googlegroups.com .
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> -- 
> Marcin Tustin
> Tel: +44 (0) 7773 787 105 (UK)
>+1  917 553 3974 (US)
>
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/OdQP11mNyh4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



uwsgi install question

2012-09-05 Thread ecs1749
I know this a Django group but uwsgi is blocking my way to seeing the next 
step of my first Django project.  There doesn't seem to be a uwsgi group 
that I can see.  So, I hope you don't mind.

First step for the uwsgi install procedure:

apt-get install build-essential python-dev libxml2-dev

but there is no "apt-get" with the westhost share hosting and uwsgi fails to 
install without libxml2.  Anybody?

Thanks,


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/jH9gjKWraqsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: E-commerce package

2012-09-04 Thread ecs1749
Along that line, I have a need for a very simple ecommerce store that any 
of the existing packages (like oscommerce) can handle easily.  However, I 
have not been able to find one that supports subscription based membership 
access to multimedia contents.  Does anybody know if that's a function 
available with any of these Django based packages, or is it something that 
needs to be developed as an add-on function?

Thanks,


On Tuesday, September 4, 2012 12:42:52 AM UTC-7, Gour wrote:
>
> On Tue, 4 Sep 2012 00:01:39 -0700 
> Randa Hisham > wrote: 
>
> > Iam developing an e-commerce website,lookig for a good django package 
> > any recommends? 
>
> Mezzanine & Cartridge - http://mezzanine.jupo.org/ 
>
>
> Sincerely, 
> Gour 
>
> -- 
> It is far better to discharge one's prescribed duties, even though 
> faultily, than another's duties perfectly. Destruction in the course 
> of performing one's own duty is better than engaging in another's 
> duties, for to follow another's path is dangerous. 
>
> http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/WZwDhr-v6jYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Development server won't work from a shared web host

2012-09-04 Thread ecs1749
I don't have a local machine I can use to learn Django - just a personal 
acct from a shared host.  The question I kept asking was:  How do I get 
into admin and follow the tutorial without the development server because 
the tutorial doesn't tell me that.

Regards,

On Monday, September 3, 2012 11:13:53 PM UTC-7, Daniel Roseman wrote:
>
> On Tuesday, 4 September 2012 03:32:08 UTC+1, ecs1749 wrote:
>>
>> Thanks for the reply.  Yes, I saw that message.  I am a bit lost where to 
>> go next if I completely ignore that tutorial regarding doing admin from the 
>> development server (which I don't have).  Do I dive into tutorial   #3 and 
>> hope that it will pick up the admin stuff later when it gets to talk about 
>> wsgi?  Or is there a "here's what you do if you don't have a development 
>> server" tutorial somewhere?
>>
>>
> You should not be doing the tutorial - or any development - on your 
> server. Install Django locally and do it there, then deploy when you are 
> ready and not before.
>
> However, you are wrong to assume that the admin console has anything to do 
> with the development server - it works just fine with any server.
> --
> DR.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/UhMFGZB6YS0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Development server won't work from a shared web host

2012-09-04 Thread ecs1749
To answer my own question, I found the following:

http://www.andymboyle.com/django-tutorials/

On Monday, September 3, 2012 7:32:08 PM UTC-7, ecs1749 wrote:
>
> Thanks for the reply.  Yes, I saw that message.  I am a bit lost where to 
> go next if I completely ignore that tutorial regarding doing admin from the 
> development server (which I don't have).  Do I dive into tutorial   #3 and 
> hope that it will pick up the admin stuff later when it gets to talk about 
> wsgi?  Or is there a "here's what you do if you don't have a development 
> server" tutorial somewhere?
>
> On Monday, September 3, 2012 1:10:51 PM UTC-7, jondbaker wrote:
>>
>> In the 'Running the Development Server' section of this 
>> page<http://www.djangobook.com/en/2.0/chapter02/>in the tutorial it states 
>> that:
>> "Although this server is convenient for development, resist the 
>> temptation to use it in anything resembling a production environment. The 
>> development server can handle only a single request at a time reliably, and 
>> it has not gone through a security audit of any sort."
>>
>> The 'runserver' command should only be used for local development. You 
>> need to configure your server to work with Django via wsgi (or a similar 
>> method).
>>
>> Jonathan
>>
>> On Mon, Sep 3, 2012 at 1:26 PM, ecs1749  wrote:
>>
>>> I have Django working from a shared host account (westhost).  I was able 
>>> to follow all of the steps in tutorials 1 & 2 except the part on starting 
>>> the development server.  Apparently westhost won't let you run that.  
>>> Without the development server, how do  I access the Django admin functions?
>>>
>>> Thanks,
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msg/django-users/-/JUTvMucLwLYJ.
>>> To post to this group, send email to django...@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> django-users...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>
>>
>> -- 
>> Jonathan D. Baker
>> Developer
>> http://jonathandbaker.com
>>
>>  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Rj0AZ9VbZOMJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Development server won't work from a shared web host

2012-09-03 Thread ecs1749
Thanks for the reply.  Yes, I saw that message.  I am a bit lost where to 
go next if I completely ignore that tutorial regarding doing admin from the 
development server (which I don't have).  Do I dive into tutorial   #3 and 
hope that it will pick up the admin stuff later when it gets to talk about 
wsgi?  Or is there a "here's what you do if you don't have a development 
server" tutorial somewhere?

On Monday, September 3, 2012 1:10:51 PM UTC-7, jondbaker wrote:
>
> In the 'Running the Development Server' section of this 
> page<http://www.djangobook.com/en/2.0/chapter02/>in the tutorial it states 
> that:
> "Although this server is convenient for development, resist the temptation 
> to use it in anything resembling a production environment. The development 
> server can handle only a single request at a time reliably, and it has not 
> gone through a security audit of any sort."
>
> The 'runserver' command should only be used for local development. You 
> need to configure your server to work with Django via wsgi (or a similar 
> method).
>
> Jonathan
>
> On Mon, Sep 3, 2012 at 1:26 PM, ecs1749 >wrote:
>
>> I have Django working from a shared host account (westhost).  I was able 
>> to follow all of the steps in tutorials 1 & 2 except the part on starting 
>> the development server.  Apparently westhost won't let you run that.  
>> Without the development server, how do  I access the Django admin functions?
>>
>> Thanks,
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/JUTvMucLwLYJ.
>> To post to this group, send email to django...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> django-users...@googlegroups.com .
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> -- 
> Jonathan D. Baker
> Developer
> http://jonathandbaker.com
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/1wG218nlRE8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Development server won't work from a shared web host

2012-09-03 Thread ecs1749
I have Django working from a shared host account (westhost).  I was able to 
follow all of the steps in tutorials 1 & 2 except the part on starting the 
development server.  Apparently westhost won't let you run that.  Without 
the development server, how do  I access the Django admin functions?

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/JUTvMucLwLYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.