restart automatically
--karl
On Jan 12, 6:17 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Jan 12, 2008 2:47 AM, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
> > mod_fastcgi installation
>
> > The error is:
>
mod_fastcgi installation
The error is:
'WSGIRequest' object has no attribute 'session'
any ideas?
If I add lines to the file, the error stays at the same location.
and if I erase the .pyc file, it does not get regenerated.
How do I cause it to use the newly edited file??
I've tried touching t
I must be blind!!
I have 2 files (screen capture from pico)
GNU nano 1.3.12 File: tmp2
#!/usr/local/bin/python2.5
print "Hello"
GNU nano 1.3.12 File: tmp3
#!/usr/local/bin/python2.5
print "Hi!"
Both are executable:
[EMAIL PROTECTED] public_html]# ls -
I'm moving an app that works on my local computer to a (VPS) server.
Apache has mod_fastcgi installed.
I'm tying to follow the directions at
http://www.djangoproject.com/documentation/0.96/fastcgi/
When I access my site I get the aqua screen sayiing apache /cpanel/whm
is installed ; now you need
I'm trying to install Django on a host. The host has Python 2.4, but
some site-packages I need are missing.
I FTP'd ez_setup.py to my public_ftp/incoming directory and ran it
Using SSH I can see that /usr/lib/python2.4/site-packages now contains
a directory
setuptools-0.6c7-py2.4.egg
which in t
Told host; they replied that mysql.sock was there - must be a problem
with my settings.
Now What?
Karl
On Jan 6, 2:43 am, Brett Parker <[EMAIL PROTECTED]> wrote:
> On 06 Jan 00:38, kbochert wrote:
>
>
>
>
>
> > I get:
>
> > --sys_path--
> > [
Never mind.
In my month of experience with Python, I never quite grasped that each
module on the module path needs a __init__.py
Ktb
On Jan 6, 12:38 am, kbochert <[EMAIL PROTECTED]> wrote:
> I am trying to set up Django on a shared site (OCSSolutions.com) using
> FCGI.
> Need
On Jan 5, 5:46 pm, Michael Hipp <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm hoping to rework my website into Django, but am having trouble at my
> shared hosting provider (HostMonster).
>
> They don't support mod_python, so Hostmonster said to add this to .htaccess
> for FastCGI:
>
>AddHandl
I am trying to set up Django on a shared site (OCSSolutions.com) using
FCGI.
Needless to say, it doesn't work.
In my public_html directory, I place the file site.fcgi containing:
#!/usr/bin/python
import sys, os
# Add a custom Python path.
sys.path.insert(0, "/home/ktb/py/")
print '--sys.path-
On Dec 20, 11:49 am, pk <[EMAIL PROTECTED]> wrote:
> Are you using the built-in Group and User classes? If what you are
> quoting is cut-and-pasted from your console, you maybe using your own
> model? Maybe you should show us the actual source code.
>
> FYI -- the built-in classes are django.con
I have an app, and I have added 3 Users in 2 Groups.
How do I get the users that belong to a specific Group??
Using the shell on the built in Django models I get:
>>> G = Groups.objects
>>> U = Users.objects
>>> U.all()
[, ]
>>> G.all()
[, ]
Ok so far? ( the double User: in U.all() concerns me
The site http://www.instantdjango.com has a download (self-extracting
exe) that unzips to a complete Python 25 installation. Unzip to a temp
folder then Python25/site-packages/django has version .97 pre ready
to copy to your Python dir
Not clear how often its is updated.
Karl
On Jul 25, 12:3
I'm trying to get Satchmo working.
I can get it to create its database, and it seems to function until I
try to bring up its admin in my browser
Browsing to loalhost/admin brings up a page
ValueError at /admin/
Empty module name
The code at the error is in django/template/context.py
d
!SOLVED!
For any other SVN clueless out there, the site www.instantdjango.com
has a zip package that includes version .97
of Django (as of 5 Jul ). Unzip to a temporary dir and replace site-
packages/django
Thanks
Karl
On Jul 22, 8:43 pm, kbochert <[EMAIL PROTECTED]> wrote:
&
Yes I have downloaded it. What am I supposed to do with .lib and .h
files?
On Jul 22, 9:49 pm, "John Shaffer" <[EMAIL PROTECTED]> wrote:
> On 7/22/07, kbochert <[EMAIL PROTECTED]> wrote:
>
> > That seems to get me a bunch of .h and .lib files -- then what!
That seems to get me a bunch of .h and .lib files -- then what!!
On Jul 22, 9:23 pm, "John Shaffer" <[EMAIL PROTECTED]> wrote:
> The subversion windows binaries are available
> here:http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=81...
>
> You want the "svn-win32-1.4.4.zip"
zips for 'those who have trouble using svn'. If you professionals have
trouble, what chance have I?
On Jul 22, 9:39 pm, Forest Bond <[EMAIL PROTECTED]> wrote:
> On Sun, Jul 22, 2007 at 09:35:37PM -0700, kbochert wrote:
>
> > Just looked that up. Perhaps that's
"Ben Ford" <[EMAIL PROTECTED]> wrote:
> Can't you just use tortoise SVN or something similar...?
>
> On 23/07/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I was hoping to try Satchmo, the Django shopping cart.
>
> > Unfor
I was hoping to try Satchmo, the Django shopping cart.
Unfortunately, it uses 'DecimalField' which is only available in the
SVN versionof Django. I'm using Win2k, so to get the svn version I
must install SVN, which means that I have to install APR, which is
only available as source, which means I
Seems unlikely but heres some detail on the problem reported in
'Startup help'
An exception was being raised in loading.py:get_app(app_label, emptyOK
= False)
This function was being called twice, the second time with an empty
app_label and emptyOK False.
It seems that management.py:execute_fro
Just starting.
I have followed the polls tutorial up to where it suggests
'python manage.py sql polls'
To see the sql generated for the polls app.
I get an error message that ends with:
django.core.exceptions.ImproperlyConfigured:
App with label could not be found
If I try 'python manage.p
On Feb 19, 5:27 pm, "Lawrence Oluyede" <[EMAIL PROTECTED]> wrote:
> > All I can think of is to create a new model, say Poll1, with the
> > correct fields, do a syncdb, write and execute a python function to
> > transfer the data from Poll to Poll1, do a DROP TABLE on Poll, create
> > a new tabl
If I have a Django model:
class Poll(models.Model):
...
and decide that I need another field in the table, how do I proceed
while keeping the data?
All I can think of is to create a new model, say Poll1, with the
correct fields, do a syncdb, write and execute a python function to
transfer t
On Feb 19, 1:52 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Feb 19, 1:25 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote:
> > > On 2/19/07, kbochert <[EM
On Feb 19, 1:25 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote:
>
> > > what exactly are you doing?
> >
On Feb 19, 1:35 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Feb 19, 1:25 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote:
> > > On 2/19/07, kbochert <[EM
On Feb 19, 1:25 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote:
>
> > > what exactly are you doing?
> >
On Feb 19, 1:11 pm, "Chris Brand" <[EMAIL PROTECTED]> wrote:
> > I then erase my apps database and run 'manage.py syncdb'
>
> Are you aware that you don't have to erase the database before running
> syncdb ? If you don't erase the db, you won't need to recreate the
> superuser...
>
If I add or
On Feb 19, 12:46 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
>
> what exactly are you doing?
> this approach works perfectly for me...
>
I put the mentioned sql in a file in my Djano installation django/
contrib/auth/sql/users.sql
I then erase my apps database and run 'manage.py syncdb'
When p
On Feb 19, 11:40 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
> > How do I generate a hashed password?
>
> The easiest way is actually to manually create the superuser once
> during a syncdb run, an
On Feb 19, 11:08 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, James Bennett <[EMAIL PROTECTED]> wrote:
>
> > Something like
>
> > BEGIN;
> > INSERT INTO "auth_user" ('username', 'email', 'password') VALUES
> > ('me', '[EMAIL PROTECTED]', 'my_hashed_password');
> > COMMIT;
>
> (an
None of those suggestions seem to help
-- Should I use a method that will break in 1.0??
-- As a beginner, I am loath to try patching Django
-- I have no test_client in my Django distribution
-- I see how to provide a .sql file, but how do I put a super user in
it?
Perhaps I'm just going at this
Is there a was to install the contrib.admin app without the
contrib.auth app??
While learning, I am eraseing the database and doing manage.py syncdb
a lot, and it would be real nice to have it come up without having to
enter username email etc. each time.
Karl
--~--~-~--~~-
I think I almost get it.
If I configure Apache as you suggest, and a user surfs to
"www.mysite.com"
what url gets 'passed' to urls.py?
Will that url match:
1:(r'^$', 'mysite.myapp.views.index'),
or
2: (r'^myapp/$', 'mysite.myapp.views.index'),
or
3: (r'^index$', 'mysite.myapp.views.index'),
On Feb 18, 12:29 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2007-02-18 at 00:20 -0800, kbochert wrote:
> No it doesn't *require* Apache, although that is one popular option.
> Please read the installation documentation, which contains pointers to
> setup
On Feb 18, 12:05 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2007-02-17 at 23:42 -0800, kbochert wrote:
>
> > On Feb 17, 11:04 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
> > wrote:
> [...]
> > > It will very much vary on a per-host basis
On Feb 17, 11:04 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2007-02-17 at 20:51 -0800, kbochert wrote:
> > On a deployed django site, what url does Django use when scanning
> > urls.py when user browses towww.mysite.com ?
>
> > When I ac
On a deployed django site, what url does Django use when scanning
urls.py when user browses to www.mysite.com ?
When I access my (non-django) site with
www.mysite.com
my host serves up the file that i see as html/index.html
If the polls tutorial is deployed to my host, does the mapping in
On Feb 13, 7:41 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> On 2/13/07, kbochert <[EMAIL PROTECTED]> wrote:
> ...> > If you -must- serve media with django, use the static media server
> > > that's built-in. But you're really better
On Feb 13, 5:52 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
>
> Ah! I was stumped before. Not now.
>
> render_to_response expects a template and, I'm sure, opens the file as
> text. You're giving it a binary. Don't do that. It'll be served as
> html mime type and line endings will get mu
-urls.py:
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^polls/(?P.+)$', 'Mysite.polls.views.static'),
# (r'^polls/(?Pnews\.html)$', 'Mysite.polls.views.static'),
)
--views.py:
# Create your views here.
from django.shortcuts import rende
On Feb 13, 11:13 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> On 2/13/07, kbochert <[EMAIL PROTECTED]> wrote:
>
> > Given the urlhttp://127.0.0.1:8000/mysite.news.htm
>
> > then in urls.py
>
> > (r'^polls/(?P[a-z.]+)', 'Mysi
Given the url http://127.0.0.1:8000/mysite.news.htm
then in urls.py
(r'^polls/(?P[a-z.]+)', 'Mysite.polls.views.news'),
#displays page properly, but without the graphics
(r'^polls/(?P.+)', 'Mysite.polls.views.news'),
#displays page with some of the graphics, some of which are badly
rendered
This may just be 5:00 AM stupid but:
I have an assortment of html files generated by a WYSIWYG editor (no
django markup).
I merge these into the polls tutorial and can display the index page
at http://127.0.0.1:8000/polls/ , apparently correctly
using views.py:
def index(request):
latest_p
On Feb 12, 8:42 pm, "Waylan Limberg" <[EMAIL PROTECTED]> wrote:
> You can do it either way, but the suggested way works better when you have
> multiple apps which share the same layout and who's templates all inherit
> from the same base template. Add on top of that the fact that (in a large
>
>From the tutorial I see that a project directory looks like:
Project
App
models.py
views.py
Templates
App
index.htm
Admin
Doesn't it make more sense to have:
Project
App
models.py
views.
After a long absence, I tried my installation of the tutorial and got:
Error importing middleware django.middleware.sessions
My settings.py has:
MIDDLEWARE _CLASSES = {
"django.middleware.sessions.SessionMiddleware",
...
I change this to :
MIDDLEWARE _CLASSES = {
"django.cont
After a long absence, I tried my installation of the tutorial and got:
Error importing middleware django.middleware.sessions
My settings.py has:
MIDDLEWARE _CLASSES = {
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
So 'DATABASE_NAME' should be the full name of a non-existant file. I
had thought they wanted the path to where the file was located.
!!Works fine now!!
Two problems for Django with Python 2.5
bug 1)
ez_setup.py in Django .95 folder should have:
DEFAULT_VERSION = "0.6c3"
instead of
DEFAULT_VERS
I tried to do:
Python manage.py syncdb
and got the error "No module named pysqlite2". I edited the file
\Python25\Lib\site-packages\Django-0.95-py2.5.egg\django\db\backends\sqlite3\base.py
to read:
from sqlite3 import dbapi2 as Database
instead of
from pysqlite2 import dbapi2 as Database
and the e
>From Django Djumpstart I attemptd:
python manage.py syncdb
and got an error:
C:\Django\gtd>python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 11, in
execute_manager(settings)
File
"C:\Python25\lib\site-packages\django-0.95-py2.5.egg\django\core\manageme
nt.
Thanks but I don't have, and don't want an irc client, so I'll just
struggle along and try not to ask stupid questions. My problem is that
Python 2.5 and sqlite3 seems to be a buggy combination. (Is that true?)
Maybe sqlite3 hasn't really been integrated yet?
I have had to edit
"C:\Python25\lib\s
Jeremy Dunck wrote:
> On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
> >
> > The command
> > C:>django-admin.py
> > does find it (tho it doesn't know what to do with it).
> >
> > It seems Python does not understand the path envir
I setup my path env var:
C:\Django>path
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\ATI Tech
nologies\ATI Control
Panel;C:\Apps\Eps12\Bin;C:\Python25;c:\Python25\Scripts;c:\
Django\django\bin
And I get:
C:\Django>python django-admin.py
python: can't open file 'django
Found it. Highlite the text with the mouse, then right-click copies to
clipboard
Right-click on the dos box with nothing highlighted causes a paste!
(I think Bill has something against dos boxes!)
Karl
--~--~-~--~~~---~--~~
You received this message because you
I need some help installing Django. (not a good sign for my ability to
use it!)
I have installed Python25 on Windows2000, and added it to the path.
Its at C:\Python25
I downloaded and unzipped Django 0.95 to C:\Django-0.95
I opened a console in c:Django-.095 and entered 'sudo python setup.py
insta
Now thats what I expected -- no error messages
Interestingly, installing Django has taught me two things I never knew
about WIN2K
You can redirect stderr with '2>'
The File syatem has symbolic links ( just no tools to access them!)
Thanks for the help.
Karl
--~--~-~--~~
I can't ccut and paste from a dos box. Fortunately I just discovered
that I can redirect stderr using '2>' !!
Traceback (most recent call last):
File "setup.py", line 2, in
ez_setup.use_setuptools()
File "C:\Django-0.95\ez_setup.py", line 72, in use_setuptools
egg = download_setuptoo
Not that I am aware of. Windows 2000, Sygate personal firewall. Comcast
cable.
Plain vanilla I think.
Karl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
I need some help installing Django. (not a good sign for my ability to
use it!)
I have installed Python25 on Windows2000, and added it to the path.
Its at C:\Python25
I downloaded and unzipped Django 0.95 to C:\Django-0.95
I opened a console in c:Django-.095 and entered 'python setup.py
install'
I
I need some help installing Django. (not a good sign for my ability to
use it!)
I have installed Python25 on Windows2000, and added it to the path.
Its at C:\Python25
I downloaded and unzipped Django 0.95 to C:\Django-0.95
I opened a console in c:Django-.095 and entered 'python setup.py
install'
I
Yeah -- just found it. Sticky key prevented saving of the polls.py
file
Why do these things always happen when I'm learning something new??
On to the next stupidity.
Thanks
I'm trying to run through the tutorial and when I get to the step:
'python manage.py sql polls'
I get the error
AttributeError: 'module' object has no attribute '_MODELS'
(management.py line 65)
I'm using SQLite.
This question has been asked here before without reply.
Am I out of luck?
Thanks
Ka
63 matches
Mail list logo