*my file with invoke-task (tasks.py)*
.........................................................
from invoke import run, task

separeted_line = eval('\'*\'*50')
sample = "\n{0}\n*** Finished: {1} ***\n{0}\n"


@task
def run_stadalone_configure():
    command = './manage.py collectstatic --noinput'
    print(sample.format(separeted_line, command.upper()))
    run(command)
    command = './manage.py compilemessages'
    run(command)
    print(sample.format(separeted_line, command.upper()))
    command = './manage.py migrate'
    run(command)
    print(sample.format(separeted_line, command.upper()))
    # command = './manage.py createsuperuser --username=wlysenko 
--email=setivolkyl...@gmail.com'
    # run(command)
    # print(sample.format(separeted_line, command.upper()))

*RESULT command: invoke run_stadalone_configure*
----------------------------------------------------
(heroku_project_brat) wlysenko@wlysenko-Aspire 
~/.virtualenvs/heroku_project_brat/project_brat $ invoke 
run_stadalone_configure

**************************************************
*** Finished: ./MANAGE.PY COLLECTSTATIC --NOINPUT ***
**************************************************


0 static files copied to 
'/home/wlysenko/.virtualenvs/heroku_project_brat/project_brat/staticfiles', 
251 unmodified.
processing file django.po in 
/home/wlysenko/.virtualenvs/heroku_project_brat/project_brat/locale/ru/LC_MESSAGES
processing file django.po in 
/home/wlysenko/.virtualenvs/heroku_project_brat/project_brat/apps/app_files/locale/ru/LC_MESSAGES
processing file django.po in 
/home/wlysenko/.virtualenvs/heroku_project_brat/project_brat/apps/app_contact_me/locale/ru/LC_MESSAGES

**************************************************
*** Finished: ./MANAGE.PY COMPILEMESSAGES ***
**************************************************

Operations to perform:
  Apply all migrations: contenttypes, auth, app_files, sites, admin, 
sessions
Running migrations:
  No migrations to apply.

**************************************************
*** Finished: ./MANAGE.PY MIGRATE ***
**************************************************

Superuser creation skipped due to not running in a TTY. You can run 
`manage.py createsuperuser` in your project to create one manually.
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File 
"/home/wlysenko/.virtualenvs/heroku_project_brat/lib/python3.4/site-packages/django/core/management/__init__.py",
 
line 350, in execute_from_command_line
    utility.execute()
  File 
"/home/wlysenko/.virtualenvs/heroku_project_brat/lib/python3.4/site-packages/django/core/management/__init__.py",
 
line 342, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/wlysenko/.virtualenvs/heroku_project_brat/lib/python3.4/site-packages/django/core/management/base.py",
 
line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File 
"/home/wlysenko/.virtualenvs/heroku_project_brat/lib/python3.4/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
 
line 52, in execute
    return super(Command, self).execute(*args, **options)
  File 
"/home/wlysenko/.virtualenvs/heroku_project_brat/lib/python3.4/site-packages/django/core/management/base.py",
 
line 399, in execute
    output = self.handle(*args, **options)
  File 
"/home/wlysenko/.virtualenvs/heroku_project_brat/lib/python3.4/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
 
line 173, in handle
    
self.UserModel._default_manager.db_manager(database).create_superuser(**user_data)
*TypeError: create_superuser() missing 1 required positional argument: 
'email'*

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/46777fdc-9ee5-4cb8-b3e5-21246691acee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to