the way is the same as to do datamigrations with RAW_SQL, change APPNAME on your:
python manage.py makemigrations APPNAME --empty
inside the created file:
operations = [
migrations.RunSQL(
'ALTER SEQUENCE APPNAME_USER_id_seq RESTART WITH 10000;'
)
]
More Related Contents:
- Does the django-rest-framework provide an admin site to manage models?
- Django dynamic model fields
- How to convert JSON data into a Python object?
- Django filter queryset __in for *every* item in list
- How to execute a Python script from the Django shell?
- Django, creating a custom 500/404 error page
- Django: Redirect to previous page after login
- How do I force Django to ignore any caches and reload data?
- ImproperlyConfigured: You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
- Django: Adding “NULLS LAST” to query
- Serving dynamically generated ZIP archives in Django
- Django Rest Framework writable nested serializers
- How can I save my secret keys and password securely in my version control system?
- get request data in Django form
- How do I use Django templates without the rest of Django?
- many-to-many in list display django
- How to filter (or replace) unicode characters that would take more than 3 bytes in UTF-8?
- Calling a REST API from django view
- find_element_by_class_name for multiple classes [duplicate]
- Django – makemigrations – No changes detected
- Class has no objects member
- Django Rest Framework – How to add custom field in ModelSerializer
- Running django tutorial tests fail – No module named polls.tests
- Simple approach to launching background task in Django
- How does the order of mixins affect the derived class?
- Django 1.9 deprecation warnings app_label
- Django widget override template
- Add “django-admin.py” path to command line on Windows 7
- Django Multiple Databases – relation does not exist; LINE 1: SELECT COUNT(*) AS “__count” FROM
- How do I change the range of the x-axis with datetime?