#18164: startapp error: no such option --------------------------------------------+-------------------- Reporter: nikita@… | Owner: nobody Type: Uncategorized | Status: new Component: Core (Management commands) | Version: 1.4 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------------+-------------------- In documentation (https://docs.djangoproject.com/en/dev/ref/django-admin /#django-admin-option---template):
... The template context used is: * Any option passed to the startapp command ... I run: {{{ $ python manage.py startapp --import=datetime --template=/app_template.zip new_app }}} I added a new option ''--import=datetime''.[[BR]] In my (py) template: {{{ {% if import %}import {{ import }}{% endif %} }}} I expect to see in my py-file after executing the command: {{{ import datetime }}} but I see in console {{{ manage.py: error: no such option: --import }}} -- Ticket URL: <https://code.djangoproject.com/ticket/18164> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.