Getting Start Django

100 views
Skip to first unread message

jsroyal

unread,
Aug 31, 2016, 8:17:18 AM8/31/16
to Django users
Hello guys,
    I am newbie in Django and started learning with Standard Documentation version: 1.10.
I
already Install
Django 1.10 and Python 3.4 in Linux Ubuntu 15.04  But in first phage I got some problem
I type command

django-admin startproject mysite
error:
Cannot find installed version of python-django or python3-django
Need some help to get out.
Stay strong
JS

Daniel França

unread,
Aug 31, 2016, 8:27:14 AM8/31/16
to Django users
How did you install Django?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2fc42b55-e9da-46cc-8762-06265deb6b43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jsroyal

unread,
Aug 31, 2016, 8:50:20 AM8/31/16
to Django users

sudo apt-get install python-django-common
Through this command.

 

Daniel França

unread,
Aug 31, 2016, 9:19:44 AM8/31/16
to Django users
I rather recommend you using a virtualenv and install using pip instead http://tutorial.djangogirls.org/en/django_installation/

On Wed, 31 Aug 2016 at 14:50 jsroyal <jsro...@gmail.com> wrote:

sudo apt-get install python-django-common
Through this command.

 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

ludovic coues

unread,
Aug 31, 2016, 9:23:58 AM8/31/16
to django...@googlegroups.com
+1 on using pip
It will make your live easier
> https://groups.google.com/d/msgid/django-users/CACPst9%2BJoTk%3DwjX2DoBq0drS-zkUhWJwzH7L%2Bva3g5%3DeENk51Q%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42

Abraham Varricatt

unread,
Aug 31, 2016, 12:19:54 PM8/31/16
to Django users
It's nice that you are on Ubuntu. :)  Here is a quick and dirty way to get up to speed, (going to assume you will use python3)

# Installing virtualenv globally
$ sudo apt-get update
$ sudo apt
-get install python3-pip
$ sudo pip3 install virtualenv

Once you have that done, navigate to an empty directory to create a new virtualenv folder, activate it, and install django!

$ mkdir test
$ cd test
$ virtualenv
--python=python3 VENV
$ source VENV
/bin/activate
(VENV)$ pip install django
(VENV)$ django-admin startproject mysite


...


(VENV)$ deactivate     # to turn off the virutualenv, or just close the terminal session
$



Yours,
Abraham V.

jsroyal

unread,
Aug 31, 2016, 1:27:03 PM8/31/16
to Django users
 Thanks @Abraham for helping me out.
Now i getting run up.


Jani Tiainen

unread,
Sep 2, 2016, 7:07:56 AM9/2/16
to django...@googlegroups.com

Hi,

One thing to note here: NEVER use pip with sudo. You may accidentally break packages from your distribution and easily end up in the case that you whole system is broken.

You also should install virtualenvwrapper it makes virtualenv handling even more pleasant.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.

-- 
Jani Tiainen
Reply all
Reply to author
Forward
0 new messages