Guest User

Untitled

a guest
Mar 30th, 2018
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import os
  2.  
  3. from django.core.wsgi import get_wsgi_application
  4.  
  5. # project_name_settings = "<project_name's>.settings"
  6. # project_name_settings = "dojo_ninjas_main.settings"
  7. project_name_settings = ""
  8.  
  9. os.environ.setdefault("DJANGO_SETTINGS_MODULE", project_name_settings)
  10. application = get_wsgi_application()
  11.  
  12. # Example: from <location of models.py in relation to manage.py> import <model names>
  13. from apps.likes_books.models import Users, Books
  14.  
  15. # users = [['Jimmy', "Crouch", "barty_couch@gmail.com"], ["Jelly", "Bean", "jb@gmail.com"], ['JAckdon', "brown", "jackB@gmail.com"]]
  16.  
  17. # for usr in users:
  18. # user = Users()
  19. # user.first_name = usr[0]
  20. # user.last_name = usr[1]
  21. # user.email = usr[2]
  22. # user.save()
Add Comment
Please, Sign In to add comment