#lockblog
Explore tagged Tumblr posts
polkadotrapier · 1 year ago
Text
Hey.
Guys.
What's the difference between me and George?
I'm Lockblogging.
He's Cockblocking.
You're welcome.
11 notes · View notes
lockblog · 7 years ago
Text
Django - Setting up a project
List of commands to set up a project (for Linux/Ubuntu):
$ ls # to check your directories $ cd Desktop # choose whichever one you prefer $ virtualenv LockBlog # requires having virtualenv installed. This creates the virtual workspace called ‘LockBlog’ $ cd Lockblog # change into the newly created directory $ . bin/activate # activate the virtualenv. Command works only on Linux. $ pip install django==1.11 # install the chosen version of Django $ django-admin startproject LockB # create the Django project, called ‘LockB’ $ ls # see current directories to check if the project has been created $ cd LockB # change into it $ python manage.py migrate # sync and migrate databases (required step, even though we haven’t really created any databases yet) $ python manage.py createsuperuser # create an admin account for the site $ python manage.py runserver # run the server with the new app
Go to your browser and type ‘127.0.0.1:8000′ into the URL bar, and you should see this: 
Tumblr media
To go to the admin page, go to ‘127.0.0.1:8000/admin’ and log in with the user and password you recently created.
0 notes
Text
Django - Setting up a project
List of commands to set up a project (for Linux/Ubuntu):
$ ls # to check your directories $ cd Desktop # choose whichever one you prefer $ virtualenv LockBlog # requires having virtualenv installed. This creates the virtual workspace called ‘LockBlog’ $ cd Lockblog # change into the newly created directory $ . bin/activate # activate the virtualenv. Command works only on Linux.  $ pip install django==1.11 # install the chosen version of Django $ django-admin startproject LockB # create the Django project, called ‘LockB’  $ ls # see current directories to check if the project has been created $ cd LockB # change into it $ python manage.py migrate # sync and migrate databases (required step, even though we haven’t really created any databases yet) $ python manage.py createsuperuser # create an admin account for the site $ python manage.py runserver # run the server with the new app
Go to your browser and type ‘127.0.0.1:8000′ into the URL bar, and you should see this:
To go to the admin page, go to ‘127.0.0.1:8000/admin’ and log in with the user and password you recently created.
0 notes