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?
3stripe
✭✭
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 :-(
0
This discussion has been closed.
Comments
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)
andclass 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 -
And
Seems like blog in a framework to me.
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.
python setup.py develop
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.