Django CMS 3.11.10 Documentationminutes to learn the basics of using virtual environments before proceeding further. Then: python3 -m venv .venv # create a virtualenv source .venv/bin/activate # activate it pip install --upgrade pip startproject myproject --template https://github.com/django-cms/cms-template/archive/4.1.tar.gz python -m manage migrate 5. It runs the django CMS check command to verify the installation is consistent: Your and create your first page! Adding django CMS to an existing Django project python -m manage createsuperuser python -m manage cms check myproject/ LICENSE README.md db.sqlite3 myproject/0 码力 | 493 页 | 1.44 MB | 6 月前0.03
Django 1.8.x Documentationcheck that your code still works as you originally intended, without having to perform time consuming manual testing. Why you need to create tests So why create tests, and why now? You may feel that you db import models class Person(models.Model): SHIRT_SIZES = ( ('S', 'Small'), ('M', 'Medium'), ('L', 'Large'), ) name = models.CharField(max_length=60) shirt_size objects.create(name="The Beatles") >>> m1 = Membership(person=ringo, group=beatles, ... date_joined=date(1962, 8, 16), ... invite_reason="Needed a new drummer.") >>> m1.save() >>> beatles.members.all()0 码力 | 2454 页 | 2.85 MB | 1 年前3
Django 1.8.x Documentationcheck that your code still works as you originally intended, without having to perform time consuming manual testing. Why you need to create tests So why create tests, and why now? You may feel that you example: from django.db import models class Person(models.Model): SHIRT_SIZES = ( ('S', 'Small'), ('M', 'Medium'), ('L', 'Large'), ) name = models.CharField(max_length=60) shirt_size = models.CharField(max_length=1 objects.create(name="The Beatles") >>> m1 = Membership(person=ringo, group=beatles, ... date_joined=date(1962, 8, 16), ... invite_reason="Needed a new drummer.") >>> m1.save() >>> beatles.members.all() [0 码力 | 1685 页 | 6.01 MB | 1 年前3
Django 1.10.x Documentationalready. You can tell Django is installed and which version by running the following command: $ python -m django --version If Django is installed, you should see the version of your installation. If it isn’t check that your code still works as you originally intended, without having to perform time consuming manual testing. Why you need to create tests So why create tests, and why now? You may feel that you it doesn’t exist yet: $ mkdir ~/.virtualenvs Now create a new virtualenv by running: $ python3 -m venv ~/.virtualenvs/djangodev The path is where the new environment will be saved on your computer0 码力 | 2538 页 | 2.59 MB | 1 年前3
Django 1.10.x Documentationalready. You can tell Django is installed and which version by running the following command: $ python -m django --version If Django is installed, you should see the version of your installation. If it isn’t check that your code still works as you originally intended, without having to perform time consuming manual testing. Why you need to create tests So why create tests, and why now? You may feel that you it doesn’t exist yet: $ mkdir ~/.virtualenvs Now create a new virtualenv by running: $ python3 -m venv ~/.virtualenvs/djangodev The path is where the new environment will be saved on your computer0 码力 | 1817 页 | 6.19 MB | 1 年前3
Django 1.11.x Documentationversion by running the following command in a shell prompt (indicated by the $ prefix): $ python -m django --version If Django is installed, you should see the version of your installation. If it isn’t check that your code still works as you originally intended, without having to perform time consuming manual testing. Why you need to create tests So why create tests, and why now? You may feel that you it doesn’t exist yet: $ mkdir ~/.virtualenvs Now create a new virtualenv by running: $ python3 -m venv ~/.virtualenvs/djangodev The path is where the new environment will be saved on your computer0 码力 | 2747 页 | 2.67 MB | 1 年前3
Django 1.11.x Documentationversion by running the following command in a shell prompt (indicated by the $ prefix): $ python -m django --version If Django is installed, you should see the version of your installation. If it isn’t check that your code still works as you originally intended, without having to perform time consuming manual testing. Why you need to create tests So why create tests, and why now? You may feel that you it doesn’t exist yet: $ mkdir ~/.virtualenvs Now create a new virtualenv by running: $ python3 -m venv ~/.virtualenvs/djangodev The path is where the new environment will be saved on your computer0 码力 | 1878 页 | 6.40 MB | 1 年前3
Django 2.1.x Documentationversion by running the following command in a shell prompt (indicated by the $ prefix): $ python -m django --version If Django is installed, you should see the version of your installation. If it isn’t check that your code still works as you originally intended, without having to perform time consuming manual testing. Why you need to create tests So why create tests, and why now? You may feel that you in .virtualenvs/ in your home directory. Create a new virtual environment by running: $ python3 -m venv ~/.virtualenvs/djangodev The path is where the new environment will be saved on your computer0 码力 | 2790 页 | 2.71 MB | 1 年前3
Django 2.1.x Documentationversion by running the following command in a shell prompt (indicated by the $ prefix): $ python -m django --version If Django is installed, you should see the version of your installation. If it isn’t check that your code still works as you originally intended, without having to perform time consuming manual testing. Why you need to create tests So why create tests, and why now? 42 Chapter 2. Getting your first patch for Django 73 Django Documentation, Release 2.1.16.dev20191202082911 $ python3 -m venv ~/.virtualenvs/djangodev The path is where the new environment will be saved on your computer0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 2.2.x Documentationversion by running the following command in a shell prompt (indicated by the $ prefix): $ python -m django --version If Django is installed, you should see the version of your installation. If it isn’t check that your code still works as you originally intended, without having to perform time consuming manual testing. Why you need to create tests So why create tests, and why now? You may feel that you in .virtualenvs/ in your home directory. Create a new virtual environment by running: $ python3 -m venv ~/.virtualenvs/djangodev The path is where the new environment will be saved on your computer0 码力 | 2915 页 | 2.83 MB | 1 年前3
共 93 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













