1. Installing Miniconda
1.1.- Downloading Miniconda
Go to the Official Website of Miniconda and download the version to Linux:
1.2.- Running miniconda
Now we understand that if it is a script, it has the executing permission. In this case, it is shown that it does not have it, and we use the chmod command to set the execution. Then, run it with the -b flag to do it without human intervention (or silent mode), and the -p option redirect the prefix from the default route ~/ to /opt as it is shown:
1.3.-Check previously the owner and group to set the right permissions
1.4.- Link the useful events of Python in order to avoid conflicts between the functions of Python of anaconda and from the system.
1.5.- Create the environment where are you going to work in Python 3
1.6.- Activate the environment with source and install the django with the python index package
2.- Creating my first site
2.1.- Following the Django tutorial check the version of the Django framework, then create the site. This time it is called yulytas_site.
2.2.- Check the site directory, in this case it is done with nerdtree and pathogen. (btw I’ve moved the environment from my home to Development)
2.3.- Run the server from your site
2.4.- As the message suggested, we will turn off the server by typing CTRL+C and start the migration (because in red it is said that we have 13 unapplied).
2.5.- Now we see the local website with the port 8000 in our browser
3. Creating a superuser
3.1.- Every app need an admin, so lets create a superuser called admin. To do this, we are going to open another terminal (CTRL+SHIFT+T) in order to keep the runserver terminal and stay aware of the events. In this new terminal windows we must run again the server as it is follow:
3.2.- Now let’s see the admin user in the Web, inserting the proper passwd
At first we are going to see the basic modules as admin that manage user and group, we are going to see later other modules to abstract objects
1.- To list all the environments to activate the desirable env
2.- To delete the database sqlite with $ rm -r db.sqlite3 and the whole migrations previously done