Re: Database?

2008-02-09 Thread js
SQL knowledge will be helpfull, but before you start something, you don't know what to learn of SQL, do it? So I suggest you start learning Django first and when you get stuck with SQL problem, then start searching the information you need. which I think is more effective. Thanks. On Feb 10,

Database?

2008-02-09 Thread waltbrad
Hi there. I'm a python novice, getting into the Mark Lutz tome. I'm pretty enthusiastic about python and when I found out that it could be used in website development I had to look into to Django, (mainly because of the Satchmo project). So, I actually got Django installed and got the webserver

2GB Free Online Storage !

2008-02-09 Thread swenson rodharn
Free online photo Album, Free online auto-matic Back-up, Free Access your MP3 music online,2 GB For Free! That's right, we are happy to give you a whopping great 2GB of secure online storage where you can manage and share your files easily. For Free! Get Free Code: Limited Time Only!

Re: i'm tired

2008-02-09 Thread James Bennett
On Feb 9, 2008 5:48 PM, newbiedoobiedoo <[EMAIL PROTECTED]> wrote: > please take your instructions and put them up somewhere OFFICIAL, > because > I was following directions that were MUCH more complicated. To be perfectly fair, the official installation instructions on djangproject.com tell you

Re: tutorial 01

2008-02-09 Thread Wilson MacGyver
Jeff Anderson wrote: > the command isn't found because it isn't in your path. > Are you sure you installed it correctly? > > On mac os x, I recommend installing django through fink if you are new > to *nix commands and shells and the like. > > You can also change to the directory that has

Re: i'm tired

2008-02-09 Thread Wilson MacGyver
newbiedoobiedoo wrote: > please take your instructions and put them up somewhere OFFICIAL, > because > I was following directions that were MUCH more complicated. > > I just did what you said... and now I have django. I will proceed to > try and set up Mysql > now, so that I can get to testing

Re: from tutorial 01

2008-02-09 Thread newbiedoobiedoo
you can run "cd" in perl, and some other languages... since i'm not a python afficionado, you can see why i would not see to read between the lines right off the bat. On Feb 9, 4:24 pm, Jeff Anderson <[EMAIL PROTECTED]> wrote: > newbiedoobiedoo wrote: > > You can't run "cd" from python. So this

Re: from tutorial 01

2008-02-09 Thread newbiedoobiedoo
weelll... why wasn't it in my path? i'm not a doofus... just think the directions are not fail safe, and english is a difficult language to create exact meaning. better to have some script examples i think. i just installed postgresql, and it was big and hairy and longish install, but it

Re: setting up apache on OSX

2008-02-09 Thread js
Try "which httpd". Pre-installed apache is at /usr/sbin/httpd /usr/sbin/httpd -v will show the version number. I think you don't need mod_python. Have a look at http://www.djangoproject.com/documentation/tutorial01/ which will show you the basics of Django. Development server is explained

next step in tutorial 01

2008-02-09 Thread newbiedoobiedoo
I'm moving past installing mod_python. The next step is installing postgresql. The link on the tutorial yields nothing on OSX postgresql. Would the following be acceptable for this step? http://developer.apple.com/internet/opensource/postgres.html

Re: following directions to intall

2008-02-09 Thread newbiedoobiedoo
http://www.djangoproject.com/documentation/0.96/install/ These are the directions I was following, when I first posted. I got stuck at the mod_python. I AM trying to do something very simple code-wise. install is another matter apparently. ? On Feb 9, 4:21 pm, Jeff Anderson <[EMAIL

Re: following directions to intall

2008-02-09 Thread newbiedoobiedoo
I'm trying to run code that uses a db. The instructions in tutorial 01 said to use mod_python. "get the idea" was because someone else criticized me saying I was making this too complicated. So I backed off from trying to do what I set out to do 3 days ago. And decided to following along with

Re: following directions to intall

2008-02-09 Thread Jeff Anderson
What do you mean "get the idea that you need to"? You only need to install mod_python if you are deploying it in apache. You can use the development server to go through the tutorial. You won't need mod_python quite yet. Jeff Anderson newbiedoobiedoo wrote: If you go to tutorial 01, it

Re: tutorial 01

2008-02-09 Thread Jeff Anderson
the command isn't found because it isn't in your path. Are you sure you installed it correctly? On mac os x, I recommend installing django through fink if you are new to *nix commands and shells and the like. You can also change to the directory that has django-admin.py and run

from tutorial 01

2008-02-09 Thread newbiedoobiedoo
This is taken from the tutorial page: >From the command line, cd into a directory where you'd like to store your code, then run the command django-admin.py startproject mysite. This will create a mysite directory in your current directory. You can't run "cd" from python. So this is talking

following directions to intall

2008-02-09 Thread newbiedoobiedoo
If you go to tutorial 01, it says, fire up python and type import django. I did that. it failed. The next step is to click on the link, install django, and that is where you get the idea that you need to install mod_python. I'm not "making it more complex than it needs to be", I'm following

Re: i'm tired

2008-02-09 Thread newbiedoobiedoo
the development script i was looking at, which is part of the process described to use the language, sets up a number of paths and parameters, etc. maybe that's easier to look at now that i've had a break. btw, following "exactly" sometimes gives different results than you expect. :) seems to

Re: i'm tired

2008-02-09 Thread Darren Redmond
try placing the word python in front of the line: python django-admin.py startproject mysite newbiedoobiedoo wrote: > I did exactly what you said here. > The very first instruction on the tutorial failed: > django-admin.py startproject mysite > > The error was > "bash: django-admin.py: command

tutorial 01

2008-02-09 Thread newbiedoobiedoo
I have just installed python and django. I am working on tutorial 01. The command django-admin.py startproject mysite failed. Error message: bash: django-admin.py: command not found (I'm on osx 10.4) Thanks! --~--~-~--~~~---~--~~ You received this message

Re: i'm tired

2008-02-09 Thread newbiedoobiedoo
I did exactly what you said here. The very first instruction on the tutorial failed: django-admin.py startproject mysite The error was "bash: django-admin.py: command not found" Any suggestion? On Feb 9, 1:54 pm, Wilson MacGyver <[EMAIL PROTECTED]> wrote: > I think you made it more complex

Re: i'm tired

2008-02-09 Thread newbiedoobiedoo
please take your instructions and put them up somewhere OFFICIAL, because I was following directions that were MUCH more complicated. I just did what you said... and now I have django. I will proceed to try and set up Mysql now, so that I can get to testing the python code I have. What I get

Re: i'm tired

2008-02-09 Thread newbiedoobiedoo
I don't want to learn python for FUN, i actually have something i need to get done. I have code to test out, and its not just learning control structures, or what objects are. its building a web app that does data collection. in fact, i've got the code, and i'd like to be running it and testing

Re: id = None When Customizing Uploaded Filenames Without Patching

2008-02-09 Thread bergstyle
Thanks for clearing that up Gul. It's starting to click now. I'm gonna do the save twice trick for now, so I can keep moving forward with this project. Later on I'll refactor it to use a separate model for images. --~--~-~--~~~---~--~~ You received this message

Re: Web Development with Django: Windows vs Linux/Mac OS X

2008-02-09 Thread Nicolás Miyasato
Hi, I 'm a long time linux user. I just wanted to say that you should code in whatever environment you are more productive. Don't switch just because everybody does. Do it if you feel more comfortable with. Sometimes windows, sometimes osx, sometime linux... it's just up to you. I just don't see

Re: id = None When Customizing Uploaded Filenames Without Patching

2008-02-09 Thread Marty Alchin
On 2/9/08, bergstyle <[EMAIL PROTECTED]> wrote: > > I know there's been lots of discussion about how to change uploaded > filenames. After wading through the options I've been trying to use > the method described here: >

Re: Implement Multiple Steps in Process with Different Pages

2008-02-09 Thread ichbindev
I made a mistake while posting and the whole code sample was not provided. The code I currently have (and where I am stuck) is as below: # FORMS.PY import django import newforms as forms class invoiceform (forms.FORM): # fields to be displayed in the form. for example,

Implement Multiple Steps in Process with Different Pages

2008-02-09 Thread ichbindev
I have just started learning Django. The application I am developing needs to do something like this: the user visits a page, say myurl.com/ userform, and is presented a form to enter some data. After submitting the form, a confirmation page comes up. It isn't a form, but plain text saying what

Re: i'm tired

2008-02-09 Thread Wilson MacGyver
I think you made it more complex than it really has to be, especially for learning. For a straight OSX install when I first started messing around with django. here is what I did. Step 1: download and install macpython from the python.org url is

id = None When Customizing Uploaded Filenames Without Patching

2008-02-09 Thread bergstyle
I know there's been lots of discussion about how to change uploaded filenames. After wading through the options I've been trying to use the method described here: http://gulopine.gamemusic.org/2007/nov/07/customizing-filenames-without-patching/ But I can't get the primary key of the object to

Re: hosting web

2008-02-09 Thread Jeff Anderson
Hello, One way to tell is if they explicitly advertise supporting django. Any other web host that supports fastcgi should be able to do it, even if it takes a bit of tweaking on your end. Jeff Anderson Alfredo Alessandrini wrote: Hi, I'm a beginner about django. I've a doubt. How I can

Re: About to give up!!!

2008-02-09 Thread Ned Batchelder
I agree with Marty: your static URL pattern is never being used. And the log file snippet you gave had the big clue in it: [09/Feb/2008 11:58:42] "GET / HTTP/1.1" 200 39 [09/Feb/2008 11:58:42] "GET /site_media/my_image.jpg HTTP/1.1" 200 39 The key thing here is the "39". That's the number of

embed to models forms in the same form

2008-02-09 Thread Chris
In the admin panel if I have a model called books and a model called author, and books has a FK to author, is there a way to import the form for author to show up in the books form instead of having the dropdown menu or some kind of pop up window that takes you to the author form. I want it

Re: About to give up!!!

2008-02-09 Thread Karen Tracey
On Feb 9, 2008 2:29 PM, Marty Alchin <[EMAIL PROTECTED]> wrote: > > On 2/9/08, Brandon Taylor <[EMAIL PROTECTED]> wrote: > > Any way, here is my current urls.py document: > > > > from django.conf.urls.defaults import * > > from django.conf import settings > > from btaylor_design.views import home

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
YOU, MY FRIEND, ARE THE MAN. I can't thank you enough. A tear almost ran down my cheek. Kindest regards, Brandon On Feb 9, 1:29 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On 2/9/08, Brandon Taylor <[EMAIL PROTECTED]> wrote: > > > Any way, here is my current urls.py document: > > > from

Re: About to give up!!!

2008-02-09 Thread Marty Alchin
On 2/9/08, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Any way, here is my current urls.py document: > > from django.conf.urls.defaults import * > from django.conf import settings > from btaylor_design.views import home > > urlpatterns = patterns('', > (r'', home), > ) Don't bother reading

hosting web

2008-02-09 Thread Alfredo Alessandrini
Hi, I'm a beginner about django. I've a doubt. How I can verify if an hosting web can support django? If it support python is sure that django work? thanks, Alfredo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
BTW, I moved the images directory into the root of the website instead of at 'btaylor_Design/public/images', now it's just 'btaylor_design/ images' to eliminate a path. I reinstalled Python 2.5.1 and upgrade Django to 0.97. I can import Django from the command line in Python, and it appears to

Re: i'm tired

2008-02-09 Thread Brandon Taylor
Man I hear you. I've been doing web for 10 years, in a variety of languages. I have Django installed VERBATIM according to the documentation. I'm using Mac OS X 10.4.11. I have Python 2.5.1 and Django 0.97 installed. I can get Django to run, but I can't get it to server images using the

Re: Displaying ManyToMany fields inside templates

2008-02-09 Thread Rajesh Dhawan
On Feb 9, 4:51 am, Martin <[EMAIL PROTECTED]> wrote: > Hi Rajesh, > > thanks for your quick reply. I don't really understand your point but > i'll try to explain mine: > get_article_list is a queryset, it filters live articles and compares > them to todays date and returns only the ones that

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
Hello Ian, I have set permissions for all groups and users to read/write for the entire project folder, including all enclosed items. Thanks, Brandon On Feb 9, 12:48 pm, "Ian Lawrence" <[EMAIL PROTECTED]> wrote: > Ola > what are the permissions on the image file? > regards > ian > > -- >

i'm tired

2008-02-09 Thread newbiedoobiedoo
i was totally stoked about python. it seemed like the best language i'd seen in a while. but i must confess i've just looked at the script for installing the development environement http://code.djangoproject.com/wiki/SimpleBashScriptToSetupDevelopmentEnvironment this is after installing svn,

Re: About to give up!!!

2008-02-09 Thread Ian Lawrence
Ola what are the permissions on the image file? regards ian -- always code as if the person who ends up maintaining it will be a violent psychopath who knows where you live. http://ianlawrence.info --~--~-~--~~~---~--~~ You received this message because you are

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
Yes, here is my settings file: - - - import os.path DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', '[EMAIL PROTECTED]'), ) MANAGERS = ADMINS DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. DATABASE_NAME = ''

Re: setting up apache on OSX

2008-02-09 Thread newbiedoobiedoo
yes, you're right, i'm not doing production on the same machine as development and test. my ISP does support python (and perl and php and mysql). i wonder if it would be easier to just test on my ISP! since they have a sys admin. i have xports here i'm actually trying to do something

Re: setting up apache on OSX

2008-02-09 Thread newbiedoobiedoo
hi JS, Thanks for replying. You're right, this is just for development and testing. I'm on OSX, and I understand apache is already here. Although its not in the usual places, and I at least wanted to figure out what version I have... "which apache" doesn't give a clue. So what I understand

Re: Web Development with Django: Windows vs Linux/Mac OS X

2008-02-09 Thread John U.
Hi Aleandro, in my opinion your doubts about Windows as a solid platform for web development are basically groundless. Probably you are intimidated by the large number of MacBook Pro you see at geek conferences ;) Don't worry: appearances are often deceptive. I'm a practical guy and I can assure

Re: About to give up!!!

2008-02-09 Thread Bret W
Do you have DEBUG set to True in your settings.py? I don't understand why it would return a status code of 200 (OK) if it didn't fetch and serve the file. Have you tried a different image? --~--~-~--~~~---~--~~ You received this message because you are subscribed

comment system

2008-02-09 Thread Chris
hello. I have been looking at django's comment system and am going to implement it into my weblog but was wondering how stable it is. (If 'stable' is the proper word to use). In the django book it states that the comment system is still under heavy development and on the site there is not much

install questions: mod_python, md5/pgp, etc.

2008-02-09 Thread newbiedoobiedoo
i've installed svn and django. am now intending to install mod_python as soon as i figure out whether my osx machine is 64 bit or 32 bit. some questions: 1. the programs i want to develop will run from my ISP, not my home machine where i work, do i really need to install mod_python at home? i

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
Hi Michael, Believe me, I've read the documentation, and I had already tried specifying the images folder as path to media instead of the parent of images, public. Any way, here is my current urls.py document: from django.conf.urls.defaults import * from django.conf import settings from

Template fragment caching gotcha

2008-02-09 Thread Bret W
Template fragment caching (http://www.djangoproject.com/documentation/ cache/#template-fragment-caching) tags must be within a {% block %} tag if used in a template with inheritance. This may be apparent to some, but my brain thought to put it outside of the block I wanted to cache. It fails

Re: About to give up!!!

2008-02-09 Thread Michael Hipp
Brandon Taylor wrote: > Hi everyone, > > I'm just about to give up on Django. I can't even get it to load a > simple jpeg using the built-in server. > > Here is my directory structure: > > '/Users/bt/django_projects' is where all of my Django projects exist > > /btaylor_design > settings.py,

Re: About to give up!!!

2008-02-09 Thread Bret W
Brandon- I believe that the reason it's not serving the file is because your url pattern does not give a name to the string that you're capturing (the .* in your pattern). Django expects this to be given the name "path," and in Python regular expressions, you do that with the syntax: (?P.*)

About to give up!!!

2008-02-09 Thread Brandon Taylor
Hi everyone, I'm just about to give up on Django. I can't even get it to load a simple jpeg using the built-in server. Here is my directory structure: '/Users/bt/django_projects' is where all of my Django projects exist /btaylor_design settings.py, etc /public /images

Re: setting up apache on OSX

2008-02-09 Thread Milan Andric
Newbie, I use macports with osx, but that's on my production environment. Macports makes handling all the software packages much easier. You just need the latest version of Xcode (gcc and friends) to start building with macports. If you're just doing development you don't have to go through

The best practice for a registration and then getting user to fill up extra information

2008-02-09 Thread Ramdas S
Hi, I am using Django-registration. It works like a charm as far as registering new users and validating them from potential bots. However, what is the best practice as far as getting users to feed in more information. Currently in apps I have written, once someone clicks on activation key and

Beautiful Clocks

2008-02-09 Thread [EMAIL PROTECTED]
http://clocks.110mb.com/swf/phone.swf http://clocks.110mb.com/swf/guitar.swf http://clocks.110mb.com/swf/ipod.swf http://clocks.110mb.com/swf/pspcolourclock.swf http://clocks.110mb.com/swf/flashclock3.swf http://clocks.110mb.com/swf/flashclock.swf http://clocks.110mb.com/swf/flash_clock.swf

Re: custom 404 error page

2008-02-09 Thread Karen Tracey
On Feb 9, 2008 7:41 AM, samira <[EMAIL PROTECTED]> wrote: > > Hi all > I am trying to customize 404 error page by Django. As I read from href="http://www.djangoproject.com/documentation/tutorial03/#write- > a-404-page-not-found-view" target="_blank">http:// > >

Re: Web Development with Django: Windows vs Linux/Mac OS X

2008-02-09 Thread SamFeltus
I find SonomaSunshine runs nearly the same on Vista or Ubuntu, once you change the system call code, which probably isn't even a normal issue. I'd think if you were using Photoshop regularly, it would be a no brainer, just work on Windows. --~--~-~--~~~---~--~~

too see free softare notes

2008-02-09 Thread don
earnac.blogspot.com/g933052 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

custom 404 error page

2008-02-09 Thread samira
Hi all I am trying to customize 404 error page by Django. As I read from http://www.djangoproject.com/documentation/tutorial03/#write- a-404-page-not-found-view" target="_blank">http:// www.djangoproject.com/documentation/tutorial03/#write-a-404-page-not-found-view we should only define 404.html

Re: Web Development with Django: Windows vs Linux/Mac OS X

2008-02-09 Thread Oscar Carlsson
Why choose one when you can have both? I'd vote for OS X. Nice UNIX-ness, _really_ nice fonts, superb hardware support and good looking hardware...and with VMWare Fusion / Parallells virtualisation is simple and fast. And Photoshop works really well is OS X :) On Thu, Feb 07, 2008 at 12:49:27AM

Re: Displaying ManyToMany fields inside templates

2008-02-09 Thread Martin
Hi Rajesh, thanks for your quick reply. I don't really understand your point but i'll try to explain mine: get_article_list is a queryset, it filters live articles and compares them to todays date and returns only the ones that are in future. But the thing is, before manytomany i had video field

Re: getting set up on osx for first app!

2008-02-09 Thread newbiedoobiedoo
In order to that it appears I need to install "svn" I downloaded it in one fashion, but it involved a build with little instruction. So I'm fishing another route to do it. Thanks for your pointer btw. On Feb 8, 11:25 pm, js <[EMAIL PROTECTED]> wrote: > Hi again, > > OS X has pre-installed

problem with runserver

2008-02-09 Thread Andres Vargas - zodman
Im work fine, time ago and on one moment i have this error: Exception happened during processing of request from ('127.0.0.1', 34110) Traceback (most recent call last): File "/usr/lib/python2.4/SocketServer.py", line 222, in handle_request self.process_request(request, client_address)