DISQUS

DISQUS Hello! DISQUS Blog and Forum is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

DISQUS Blog and Forum

The official Disqus forum. This is the place to receive beta support and offer suggestions.
Jump to original thread »
Author

A Django Primer - Creating a Simple Blog Application

Started by Daniel Ha · 1 year ago

Preface

A couple of months ago, Daniel and I began drafting ideas for a new website. When it came down to choosing a language to begin our work, we had a tough decision to make. We both traditionally stuck to PHP for web development in the past, but we wanted to use a web […] ... Continue reading »

82 comments

  • Wow . Its so difficult to create blog application. Thanks for the guide. It will definitely be a great help to me . I would love to try it out. Hope that it will turn out to be successful.
  • beautiful... simply beautiful. I had my CRUD app ready and working in an hour!
  • How do I get my DJango to redirect the / directory. I've setup various rules for / but cannot get it to work
  • How do I get Django to redirect the / directory. Ive set up the URL's in the project as well as app directory

    The error is as follows.
    Using the URLconf defined in mproject.urls, Django tried these URL patterns, in this order:

    1. ^foo/
    2. ^/
    3. ^bar/

    The current URL, , didn't match any of these.
  • @Sup

    Use the regular expression r'^$' to match /
  • Great tutorial. I've been looking around for something simple and well-explained to get my feet wet with Django. This was perfect; not too much, but not an overly-simplistic "helloworld" either. I was a developer on the Prado framework project some time ago. Developers often reason that if a framework is sound and feature rich users will come. But, I learned a long time ago that it is actually documentation that keeps them interested in learning. Now, I actually am looking forward to learning more about Django. Good work!
  • nice tutorial - thanks for taking the time to post it.

    one question about a possible correction. should the line:

    first_post.date = datetime.now

    be

    first_post.date = datetime.now()

    ?
  • Have you customize the script? By reading datetime.now(), it will be referred to a function. Unless you have a function declared, youu will not be using datetime.now()
  • Hi,

    I like this django tutorial! Though simple, it covers some of the things that other tutorial didn't! Wish there's more to come.

    cheers,
  • I have a doubt... if django is powerfull, and you made an easy and simple blog application, why you still using wordpress for your blog?

    Cheers
  • I’ve got an Amazon gift certificate burning holes in my pocket,
    and I want to get the most bang for my buck.

    Enter the Secret Amazon Web Pages:

    http://tinyurl.com/38sojf

    This is where you’re going to find the "latest sales, rebates, and limited-time offers" from
    Amazon, and you can score some pretty deep discounts if you’re a savvy shopper.

    Next, there’s the special Sale link. This is open every Friday, and ONLY on Fridays.

    You can find the same good discounts here as you would in hidden Deals, although some
    Fridays you can really get lucky and make off like an Amazon bandit - I’ve seen discounts
    there as low as 75% off sticker price.
  • Thx for this Blog Post!
    It's my start with Django ;-)
  • The "Controller" from MVC is also there, somehow at least. It's the urls.py that controls which view is to be used.
  • Great article

    I've just started with django, and djangobook doesn't seem to help me much. Thanks.
  • Thanks for this tutorial!

    Worked like a charm.
  • Thanks for this tutorial!

    Worked like a charm.
  • Great tutorial. It was very helpful in reinforcing the learning process.
  • Great tutorial. It was very helpful in reinforcing the learning process.
  • yeah. I was just looking for one like this. great job
  • Thanks!!! Liked it!
  • Thanks!!! Liked it!
  • Thanks for the tutorial, this really helped me understand and appreciate the basic architecture of a django site.

    One note, I think this caused a warning, shown after performing first_post.save():
    first_post.date = datetime.now
    Should probably be:
    first_post.date = datetime.now()
  • Thanks for the tutorial, this really helped me understand and appreciate the basic architecture of a django site.

    One note, I think this caused a warning, shown after performing first_post.save():
    first_post.date = datetime.now
    Should probably be:
    first_post.date = datetime.now()
  • I guess
    first_post.date = datetime.now
    should be
    first_post.date = datetime.now()

    Can you fix that?

    Thanks for the nice tutorial anyways!
  • I guess
    first_post.date = datetime.now
    should be
    first_post.date = datetime.now()

    Can you fix that?

    Thanks for the nice tutorial anyways!
  • Hi Its a great tutorial ,
    i have one problem as you have mention in admin module we can able to see post which we make through shell but in my case i cant even see any label called post.. is there any reason for this..
  • yeah. I was just looking for one like this. great job
  • Hi Its a great tutorial ,
    i have one problem as you have mention in admin module we can able to see post which we make through shell but in my case i cant even see any label called post.. is there any reason for this..
  • Hi Its a great tutorial ,
    i have one problem as you have mention in admin module we can able to see post which we make through shell but in my case i cant even see any label called post.. is there any reason for this..
  • Note that maxlength has been changed to max_length, so if you are getting this error:

    TypeError: __init__() got an unexpected keyword argument 'maxlength'

    then you need to change the line in models.py to:

    title = models.CharField(max_length=100)
  • Note that maxlength has been changed to max_length, so if you are getting this error:

    TypeError: __init__() got an unexpected keyword argument 'maxlength'

    then you need to change the line in models.py to:

    title = models.CharField(max_length=100)
  • csdafsdf sdf sdf sdf
  • The Django tips were helpful. Thanks for the elaborate explanation.
  • The Django tips were helpful. Thanks for the elaborate explanation.
  • Clean stuff man. This is way too exciting.
  • Clean stuff man. This is way too exciting.
  • Thanks for sharing, I like the Disqus, this is the best comment application I ever seen!
    But I don't know python, do you have any php code like this?
  • Very mucj appreciate the step by step configuration. You have my gratetude . Cheers
  • Very mucj appreciate the step by step configuration. You have my gratetude . Cheers
  • Very mucj appreciate the step by step configuration. You have my gratetude . Cheers
  • Wow . Its so difficult to create blog application. Thanks for the guide. It will definitely be a great help to me . I would love to try it out. Hope that it will turn out to be successful.
  • Wow . Its so difficult to create blog application. Thanks for the guide. It will definitely be a great help to me . I would love to try it out. Hope that it will turn out to be successful.
  • Have you customize the script? By reading datetime.now(), it will be referred to a function. Unless you have a function declared, youu will not be using datetime.now()
  • Have you customize the script? By reading datetime.now(), it will be referred to a function. Unless you have a function declared, youu will not be using datetime.now()
  • Thanks for the tutorial and the effort put in by the team. Great Job.
  • Thanks for the tutorial and the effort put in by the team. Great Job.
  • Thanks for the tutorial and the effort put in by the team. Great Job.
  • Wow, Django has so much to do with the settings. Its awesome. Thanks for the tutorial and.............great job.
  • Wow, Django has so much to do with the settings. Its awesome. Thanks for the tutorial and.............great job.
  • Where are all the good walk-throughs on the auth system?
  • Where are all the good walk-throughs on the auth system?
  • Where are all the good walk-throughs on the auth system?
  • Thanks for the info. May God have mercy on us all.
  • nice article! nice site. you're in my rss feed now ;-)
    keep it up
  • nice article! nice site. you're in my rss feed now ;-)
    keep it up
  • great article!, grats for u site :)
  • great article!, grats for u site :)
  • 130156
  • 130156
  • Thanks for the detailed articles!Might start creating an application soon!
  • It seems to be very complicated!
  • Thanks for the detailed articles!Might start creating an application soon!
  • It seems to be very complicated!
  • This looks like its extracted from a book.Thanks!
  • It looks like it isn't that easy to create a blog application
  • I guess I have to print this out to really analyze which is the first step! Its so detailed.How I wish there are pictures provided in a step by step format!Ok. I shan't be lazy.Thanks for the guide!
  • A very thorough manual. However, may I know how often are this information updated? I believe Disqus really have hard-core supporters when they always provide unlimited help or sources to people
  • I guess I have to print this out to really analyze which is the first step! Its so detailed.How I wish there are pictures provided in a step by step format!Ok. I shan't be lazy.Thanks for the guide!
  • I guess I have to print this out to really analyze which is the first step! Its so detailed.How I wish there are pictures provided in a step by step format!Ok. I shan't be lazy.Thanks for the guide!
  • A very thorough manual. However, may I know how often are this information updated? I believe Disqus really have hard-core supporters when they always provide unlimited help or sources to people
  • A very thorough manual. However, may I know how often are this information updated? I believe Disqus really have hard-core supporters when they always provide unlimited help or sources to people
  • I didn’t do much programming myself and this seems tough to me! The only programming I have done is t o change the template of my blog and editing information of it.
  • I didn’t do much programming myself and this seems tough to me! The only programming I have done is t o change the template of my blog and editing information of it.
  • I guess I have to print this out to really analyze which is the first step! Its so detailed.How I wish there are pictures provided in a step by step format!Ok. I shan't be lazy.Thanks for the guide!
  • A very thorough manual. However, may I know how often are this information updated? I believe Disqus really have hard-core supporters when they always provide unlimited help or sources to people
  • I didn’t do much programming myself and this seems tough to me! The only programming I have done is t o change the template of my blog and editing information of it.
  • thanks for the tutorial, i already bookmark your site, very informative.
  • In case anyone wants to know, some stuff in this tutorial are pretty out of date; and that's expected in a 2 year old post.

    But I still found this very helpful, mainly because gave me an 'objective'. And I still followed the tutorial, as much of it still applies. When I ran into errors or problems, I just headed over to http://docs.djangoproject.com/en/dev/intro to hunt down the more up-2-date methods of doing things (for example, I had problems implementing the 'admin class' column sorting).

    So, THANKS! :)
  • In case anyone wants to know, some stuff in this tutorial are pretty out of date; and that's expected in a 2 year old post.

    But I still found this very helpful, mainly because gave me an 'objective'. And I still followed the tutorial, as much of it still applies. When I ran into errors or problems, I just headed over to http://docs.djangoproject.com/en/dev/intro to hunt down the more up-2-date methods of doing things (for example, I had problems implementing the 'admin class' column sorting).

    So, THANKS! :)
  • In case anyone wants to know, some stuff in this tutorial are pretty out of date; and that's expected in a 2 year old post.

    But I still found this very helpful, mainly because gave me an 'objective'. And I still followed the tutorial, as much of it still applies. When I ran into errors or problems, I just headed over to http://docs.djangoproject.com/en/dev/intro to hunt down the more up-2-date methods of doing things (for example, I had problems implementing the 'admin class' column sorting).

    So, THANKS! :)
  • great post sir..
    thanks for sharing. really helped a lot here.
    --------------------------------------------------
    Ugg Boots | Uggs
  • The Django tips were helpful. Thanks for the elaborate explanation.

Add New Comment

Returning? Login