| Name | UNIXY |
|---|---|
| Email Address | joe@unixy.net |
| Website URL | http://www.unixy.net |
| Avatar | |
| Posts | 14 |
| Board Signature | |
Fully Managed Dedicated & Virtual Servers >> http://www.unixy.net
Accelerate Your Server >> Varnish + cPanel - http://www.unixy.net/varnish | |
-
- 2010-06-13 21:23:25
- Re: permission denied message, no login page at /admin/
- Board » Getting Started » Setup and Configuration
-
Here's the section of the code that is complaining about the file permissions:
site-packages/django/core/servers/basehttp.py:
if not os.path.exists(file_path):
status = '404 NOT FOUND'
headers = {'Content-type': 'text/plain'}
output = ['Page not found: %s' % file_path]
else:
try:
fp = open(file_path, 'rb')
except IOError:
status = '401 UNAUTHORIZED'
headers = {'Content-type': 'text/plain'}
output = ['Permission denied: %s' % file_path]
Perhaps the admin files are not world-readable? Try making them readable first as a quick test.
Regards
Joe / UNIXYFully Managed Dedicated & Virtual Servers >> http://www.unixy.net
Accelerate Your Server >> Varnish + cPanel - http://www.unixy.net/varnish
-
- 2010-05-27 21:43:46
- Re: django-admin.py Error when installing Django
- Board » Getting Started » Django Installation
-
If I set it up correctly, then why this does not work?
django-admin.py startproject mysecondapps
What does the above command produce exactly? Also, what's the output of this command:
echo %path%
Regards
Joe / UNIXY
Fully Managed Dedicated & Virtual Servers >> http://www.unixy.net
Accelerate Your Server >> Varnish + cPanel - http://www.unixy.net/varnish
-
- 2010-05-27 12:46:01
- Re: django-admin.py Error when installing Django
- Board » Getting Started » Django Installation
-
I added it in Path, but it still does not work.
It returns
Usaage: django-admin.py subcommand optionsargs
How are you running django-admin.py when not using the absolute path? It looks like you have setup it up correctly.
RegardsFully Managed Dedicated & Virtual Servers >> http://www.unixy.net
Accelerate Your Server >> Varnish + cPanel - http://www.unixy.net/varnish
-
- 2010-05-26 06:05:06
- Re: socket programming??
- Board » General Category » General Discussion
-
Hi,
You'll just have to use lower level python socket routines to achieve your goal. Check out this page to get started:
http://www.amk.ca/python/howto/sockets/
RegardsFully Managed Dedicated & Virtual Servers >> http://www.unixy.net
Accelerate Your Server >> Varnish + cPanel - http://www.unixy.net/varnish
-
- 2010-05-26 06:01:46
- Re: NAS and Django
- Board » General Category » General Discussion
-
Django is a fairly newer server-side product. You'd have better luck looking for a NAS that supports mod_python than Django, which is all you need to get started. Checkout this post:
http://forum.synology.com/enu/viewtopic.php?f=106&t=18423
BestFully Managed Dedicated & Virtual Servers >> http://www.unixy.net
Accelerate Your Server >> Varnish + cPanel - http://www.unixy.net/varnish
-
- 2010-04-04 09:13:59
- Re: Apache will not start with DJANGO_SETTINGS_MODULE
- Board » Getting Started » Setup and Configuration
-
Glad it's working now. I agree that the the transition from Django's built-in server to Apache could use some instructions.
Regards
Joe / UNIXYFully Managed Dedicated & Virtual Servers >> http://www.unixy.net
Accelerate Your Server >> Varnish + cPanel - http://www.unixy.net/varnish
-
- 2010-04-03 23:59:50
- Re: Django not root
- Board » Getting Started » Setup and Configuration
-
The error you're getting is most likely a bug in Django's code. Be sure to refresh your local copy from the repository.
Regards
Joe / UNIXYFully Managed Dedicated & Virtual Servers >> http://www.unixy.net
Accelerate Your Server >> Varnish + cPanel - http://www.unixy.net/varnish
-
- 2010-04-03 23:56:26
- Re: render_by_response
- Board » Getting Started » Setup and Configuration
-
Hi,
A 404 most likely indicates missing template files. I noticed you're missing the template path in TEMPLATE_DIRS. Perhaps that's the issue.
Regards
Joe / UNIXYFully Managed Dedicated & Virtual Servers >> http://www.unixy.net
Accelerate Your Server >> Varnish + cPanel - http://www.unixy.net/varnish
-
- 2010-04-03 23:37:23
- Re: Apache will not start with DJANGO_SETTINGS_MODULE
- Board » Getting Started » Setup and Configuration
-
Did you enable mod_env in httpd.conf? There should be a LoadModule line. Try
httpd -l|grep env
You should see something like this:
mod_env.c
mod_setenvif.c
Regards
Joe / UNIXYFully Managed Dedicated & Virtual Servers >> http://www.unixy.net
Accelerate Your Server >> Varnish + cPanel - http://www.unixy.net/varnish
-
- 2010-04-03 21:23:05
- Re: Django code conventions
- Board » Getting Started » Setup and Configuration
-
Hi,
If the helper functions are lightweight and manipulate the class' objects directly, then you could include them in the model. Otherwise, think about grouping them in a helper library directory.
Regards
Joe / UNIXY
--- Last Edited by UNIXY at 2010-04-03 21:23:17 ---
--- Last Edited by UNIXY at 2010-04-03 21:23:34 ---Fully Managed Dedicated & Virtual Servers >> http://www.unixy.net
Accelerate Your Server >> Varnish + cPanel - http://www.unixy.net/varnish


