Roshan Book

My Tech Notebook

Django my notes 1


 

Content:

1. Configuring django and python in eclipse and ubuntu

2. Creation of python project

3. Starting python server

Configuring django and python in eclipse and ubuntu

1. Install eclipse with pydev

2. Install django $ sudo apt-get install python-django
3. Check installation of django via command $ django-admin.py –version

4. Now copy django from var>>lib>>python-support>>python2.7>>django to usr>>local>>lib>>python2.7>>dist-packages

5. Restart eclipse

6. Create new django project

7. You can also create new project as $ django-admin startproject project_name

8. Set up the database

9. Run $ python manage.py syncdb to set up all tables

10. Run $ python manage.py runserver to start server

11. Go to http://localhost:8000/ to see django powered page

12. If apache is running stop it by gksudo /etc/init.d/apache2 stop

13. You can start apache by gksudo /etc/init.d/apache2 start

Changing default ip address of django server
If something else is already using port 8000 on your computer, if you’re not allowed to run programs that
bind to that port, or if you want to view pages served by Django’s development server from another computer,
you’ll need to manually specify the address and port to use when you launch the development server. You
accomplish this using the syntax python manage.py runserver ip_address:port_number.
For example, to listen on all of your computer’s available IP addresses (so that other computers can
view pages from the development server) and bind to port 9000 instead of 8000, you could type python
manage.py runserver 0.0.0.0:9000 (0.0.0.0 is a special address that means “listen on all available
IP addresses”).

Advertisements

28 responses to “Django my notes 1

  1. cheap televisions November 15, 2011 at 8:55 am

    cheap tv heya,
    just found you on google. Good write-up, I was just thinking around something comparable. May start out blogging myself! Cheers cheap televisions

  2. HarlanGarrison November 19, 2011 at 2:22 pm

    Really great article with very interesting information. You might want to follow up to this topic

  3. Louis Vuitton Handbags Cheap November 20, 2011 at 7:06 am

    oh neat, this answers is definitely helpful and without a doubt is thoughts suitable! hehe. I’m going to watch if I will be able to have a shot at to utilize most of these details for my own personal blog page. Bless you!

  4. Designer Handbags November 21, 2011 at 6:44 pm

    Thank you for this interesting write-up, i’ll bookmark this page

  5. Replica Chanel Bags November 22, 2011 at 7:18 pm

    Hello guys, outstanding website, Thank you rather substantially for the information and facts I really appreciate it!!

  6. {Free Web Proxy November 22, 2011 at 8:24 pm

    Terrific Article about hide my ip address linked proxy conversations. I personally am into the hide my ip address organisation my own self.
    john

  7. VictorAdkins November 24, 2011 at 10:18 am

    Would you be enthusiastic about exchanging hyperlinks?

  8. LV Handbags On Sale November 24, 2011 at 2:09 pm

    Fantastically revealing cheers, I presume your current visitors would possibly want a whole lot more articles of this nature preserve the great content.

  9. Designer Handbags November 24, 2011 at 5:04 pm

    Superb post, loads of fine information. I am going to show my girlftriend and ask them the points they think.

  10. Louis Vuitton Sale UK November 25, 2011 at 9:17 am

    You could definitely see your expertise in the paintings you write. The sector hopes for even more passionate writers such as you who aren’t afraid to mention how they believe. At all times go after your heart.

  11. Discount Designer Handbags November 26, 2011 at 5:32 am

    You must participate in a contest for the most effective blogs on the web. IЎЇll suggest this website!

  12. Discount Bags November 26, 2011 at 10:04 am

    INteresting informations, thanks for sharing

  13. odgjzubr November 26, 2011 at 5:06 pm

    e6ZSbS dijwdjertvgt, [url=http://wowkiwpxplus.com/]wowkiwpxplus[/url], [link=http://rvstdojhywin.com/]rvstdojhywin[/link], http://qleuiuztlmur.com/

  14. Replica Gucci Bags November 26, 2011 at 11:46 pm

    I really like your writing style, decent info, thank you for posting

  15. Designer Handbags November 29, 2011 at 3:40 pm

    Particularly insightful appreciate it, I presume your current subscribers would most likely want more weblog posts similar to this keep up the remarkable effort.

  16. Balenciaga Bags November 30, 2011 at 12:58 am

    This actually answered the drawback, thank you!

  17. Chanel Bags On Sale November 30, 2011 at 7:40 am

    Pretty interesting information !Perfect just what I was looking for!

  18. Wholesale Bags December 5, 2011 at 5:49 am

    Really great article with very interesting information. You might want to follow up to this topic

  19. Discount On Watches December 6, 2011 at 8:16 am

    I really fondness the matter to you shared. Thank you pro rearrangement.

  20. invest liberty reserve December 12, 2011 at 5:00 pm

    An fascinating discussion is designer observe. I opine that you should create more on this matter, it power not be a taboo person but mostly people are not sufficiency to mouth on such topics. To the next. Cheers like your Django my notes 1 Roshan Book.

  21. minecraft skins December 12, 2011 at 5:17 pm

    An intriguing treatment is designer notice. I conceive that you should correspond more on this substance, it might not be a bias content but mostly group are not enough to talk on much topics. To the next. Cheers like your Django my notes 1 Roshan Book.

  22. minecraft skins December 13, 2011 at 3:56 pm

    An exciting speech is worth account. I suppose that you should make much on this matter, it might not be a sacred soul but generally fill are not sufficiency to verbalise on specified topics. To the succeeding. Cheers like your Django my notes 1 Roshan Book.

  23. moncler December 15, 2011 at 6:56 am

    In contrast I??m complications finding the site showing the right way with my current firefox browser, any specific idea for what exactly may just be creating the problem???

  24. suspended by ebay December 17, 2011 at 9:02 pm

    Did eBay suspend your account? I got suspended for no purpose! I dropped all my earnings, my business had been online centered. I had to discover a solution. At the end I am back for real.

  25. Mora Gilbar December 18, 2011 at 2:32 pm

    Fantastic blog post thought it was really handy and truthful

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: