Skip to content

Commit 7773d4a

Browse files
committed
Python3 as default interpreter for new projects
Use `python3` as default interpreter to build the project when it's imported/created.
1 parent d704631 commit 7773d4a

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.9.13 on 2018-09-06 07:26
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('projects', '0027_remove_json_with_html_feature'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='project',
17+
name='python_interpreter',
18+
field=models.CharField(choices=[('python', 'CPython 2.x'), ('python3', 'CPython 3.x')], default='python3', help_text='The Python interpreter used to create the virtual environment.', max_length=20, verbose_name='Python Interpreter'),
19+
),
20+
]

readthedocs/projects/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class Project(models.Model):
206206
_('Python Interpreter'),
207207
max_length=20,
208208
choices=constants.PYTHON_CHOICES,
209-
default='python',
209+
default='python3',
210210
help_text=_('The Python interpreter used to create the virtual '
211211
'environment.'))
212212

0 commit comments

Comments
 (0)