Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How do you install Django?

3stripe3stripe ✭✭
edited March 2007 in Vanilla 1.0 Help
I'm on OS X. I've read the readmes, but don't have a clue where to start. Basically I just want to mess about with the thing.... Should I install locally? Should I install from Subversion? How do I do that? Confused :-(


  • 3stripe3stripe ✭✭
    edited June 2006
    Think I've got this Subversion thing working and Django downloading... maybe.... yup... it's doing crazy stuff, lots of filenames flying along... Where is this .bash_profile file though?
  • edited June 2006
    Sorry, no idea but...

    How does 13 lines of code -

    class Post(models.Model): title = models.CharField(maxlength=200) slug = models.SlugField(prepopulate_from=('title',)) pub_date = model.DateTimeField('Date published') body = models.TextField() tags = models.ManyToManyField(Tag) lead_image = models.ImageField(upload_to='img/blog-posts/lead/', blank=True, help_text="Should be 706px wide") author = models.ForeignKey(User) enable_comments = models.BooleanField(default=True) and

    class Admin: list_display = ('title','pub_date','enable_comments') search_fields = ('title', 'slug', 'body') list_filter = ('pub_date', 'enable_comments')

    Create an admin panel like this -




    Seems like blog in a framework to me.
  • I dunno but that's awesome. .bash_profile is usually in your home directory (on my shell, for example, it's in /home/gez - where to find it on a mac i'm not sure)
  • I'd suggest that since you already got python installed (greatness of MOX) you should just git the django from subversion and then symlink the subversion with the python packages, then install mysql and use the built in python server.

    c-unit: How does 13 lines of code

    The admin thingie is a built in app in the djago, when you install it, it will generate the admin app code from the django apps, so basically it won't create it, it just activates the built in program for it. But that is the main reason why Django is so kick ass.
  • Ok, I got django from subversion ok. Will try the symlink and mysql stuff tonight!
  • YAY!
  • The EasyInstall utility django uses for setup has a cool "develop" installation mode which basically creates the symlink for you. In other words, get django from subversion, cd to the directory and run
    python develop
  • Kosmo, yeah I know that the admin panel is built in, I would just like to know how well it could hold up if you were building something that wasn't a blog or news site.
  • Do not for the sake of pete run, it complicates things, just symlink the subversion to the python packages, that way, you can allways pull the new trunk and replace the old one with that and it's allways the newest version.

    c-unit, it works perfectly with anything you can think of. It creates the forms based on the type of the model data and gives you great freedom to customizew everything to your liking with few lines of code. It's ingenius actually.
  • Kosmo, I'm always looking for good ways to manage content for Flash websites... the admin side looks spot on... can you configure it to output xml?
  • I think it is mainly intended to manipulate the model data (aka. data in database) but if you were genius enough like the guys who combined Flex and Rails I think you could make it happen, and I bet there are alot of people who have already done that, so let me snoop around for you.
  • edited June 2006
    AND GOD WALKS WITH FUNNY SHOES.. apparently bitey too. was made with Django /w Flash integration, I bet a good interrogation with Jeff would do good. And asking questions in bears fruit. It was the butler in the den with a candlestick!
  • 3stripe3stripe ✭✭
    edited June 2006
    That's just the SSP component placed into the page I think Kosmo... will ask some questions though, cheers!
  • It's the Flash widget, but the photos and xml comes from Django. Updated and manipulated by the admin interface.
  • Ah ok.
  • I heard back from Jeff Croft - he's used xml on that page it turns out - it's just a case of using a different template in Django that spits out the data as xml - great news! (His example is on my computer at work so I'll post it tomorrow) Also, I'm getting my own dedicated server at work for hosting - so will be able to install anything I want on it... :)
  • Need a host for your dedi there...? ;p
  • Am I talking nonsense, or you? Confused.
  • Neither of us i dont think. Then again actually we both are. I love family guy!
  • 3stripe3stripe ✭✭
    edited June 2006
    Family guy? Don't watch it, so wouldnae have got dat reference... hmm. Kosmo - I've got Django installed into site-packages, and mySQL running localling, now trying to install MySQLdb. Just need to get this symlinking thing done and think I'm nearly there.... this learning curve sure be steep! dango (package) is in my list of available modules in python... but " startproject mysite" gives me a "command not found" error in the terminal...
This discussion has been closed.