Recent Posts by tgorham
|
Jul 4, 2008
|
Topic: DjangoStack / Issues on XP Great information. That was helpful to me personally and I am certain will be helpful to others in the future. Thank you, T Gorham |
|
Jul 3, 2008
|
Topic: DjangoStack / Issues on XP Diego, You write:
No. My Python/Django newbie understanding was that init.py in the \BitNami DjangoStack\Apps\Django\Django\ directory made it a package and it was the package that I was importing. I was able to do this from the \Documents and Settings\tgorham\Bitnami DjangoStack projects folder created by the install making me think that PATH and PYTHONPATH were properly configured. I ran “import stephane” because I knew there was no such package and wanted to see it fail and raise an error. It did, making me feel more confident that “import django had been successful and not just quite.
No I have not. I suppose one of my challenges is that I don’t know what steps of the install and configuration are supposed to be handled by the BitNami Stack and what steps I am responsible for. Ideally, I would be able to run the install and immediately begin executing the tutorial. Practically, given the diversity of environments in which the install will be run, that may not be possible. I’ve reviewed the install instructions at DjangoProject.org but as I’ve said, am unclear where the installer’s responsibility ends and mine begins. Without that understanding two of the outcomes are bad. If I find a solution to something that should have been handled by BitNami, the developers haven’t learned of a defect that needs to be corrected and the product doesn’t mature. If BitNami did everything flawlessly and my problems are pure ignorance (fairly likely) then my attempts to fix what I perceive as a problem may create a bigger one.
My bias would be to have a single source for django-admin.py versus individual copies for each project (if that was the question?). Your thoughts would be valued. It was great being able to install all of the components using a single installer. Thank you for your response and the pointers to the relevant doc. Best regards, T Gorham note: I edited this post to say “package” where I had earlier written “module”. |
|
Jul 3, 2008
|
Topic: DjangoStack / Issues on XP I installed the Django stack on XP Pro 2002 sp3 without errors. I rebooted to be cautious. I ran use_djangostack.bat. I’m given a command interpreter open to my project directory. I can successfully launch Python. I am able to “import django” without error. Out of curiosity “import stephane” raises an error. and here’s where things begin to go wrong. running django-admin.py startproject mysite gives me SyntaxError: invalid syntax I do see django-admin.py in BitNami DjangoStack\apps\django\bin\ Sounds like it could be a paths issue similar to what Thunderkil reported. I looked for the .bat equivalent of the djanoconsole antonio pointed him toward but could not find it. Thoughts? Where do I proceed form here? |
