How do I reset (or set) my username and password to access admin?

1,825 views
Skip to first unread message

J. Maceo Quintanar

unread,
Jan 17, 2015, 11:41:57 PM1/17/15
to wag...@googlegroups.com
Hello, I would appreciate your help on this. 
When installing wagtail I wasn't prompted to set up a username or a password. So now I can't access the admin interface. Anybody know where can I set this info up?

Matthew Westcott

unread,
Jan 18, 2015, 10:49:34 AM1/18/15
to wag...@googlegroups.com
On 18 Jan 2015, at 04:41, J. Maceo Quintanar <jmq....@gmail.com> wrote:

> Hello, I would appreciate your help on this.
> When installing wagtail I wasn't prompted to set up a username or a password. So now I can't access the admin interface. Anybody know where can I set this info up?

Hi,
You can set up a new admin user by running "./manage.py createsuperuser" on the command line.

Normally, the installation steps should include this (either during "./manage.py migrate", or "./manage.py createsuperuser" if using Vagrant) - if it doesn't, that's something we ought to fix. Can I ask which installation documentation you're following?

Cheers,
- Matt

J. Maceo Quintanar

unread,
Jan 18, 2015, 1:41:58 PM1/18/15
to wag...@googlegroups.com
Hello Matt,
That worked perfectly. Thanks!
So I followed the instructions to create a new project from scratch: A basic wagtail installation. After creating the project's directory, I ran the steps documented in the section "without Vagrant". There it said that the migrate step was going to prompt me to create a superuser account, but this never happened. When I ran "./manage.py migrate", this is what followed: 

Operations to perform:
  Synchronize unmigrated apps: wagtailsnippets, compressor, modelcluster
  Apply all migrations: core, wagtailusers, wagtailembeds, wagtailadmin, sessions, admin, wagtailcore, auth, contenttypes, wagtaildocs, taggit, wagtailsearch, wagtailforms, wagtailredirects, wagtailimages
Synchronizing apps without migrations:
  Creating tables...
  Installing custom SQL...
  Installing indexes...
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying wagtailcore.0001_initial... OK
  Applying wagtailcore.0002_initial_data... OK
  Applying wagtailcore.0003_add_uniqueness_constraint_on_group_page_permission... OK
  Applying wagtailcore.0004_page_locked... OK
  Applying wagtailcore.0005_add_page_lock_permission_to_moderators... OK
  Applying wagtailcore.0006_add_lock_page_permission... OK
  Applying wagtailcore.0007_page_latest_revision_created_at... OK
  Applying wagtailcore.0008_populate_latest_revision_created_at... OK
  Applying wagtailcore.0009_remove_auto_now_add_from_pagerevision_created_at... OK
  Applying wagtailcore.0010_change_page_owner_to_null_on_delete... OK
  Applying core.0001_initial... OK
  Applying core.0002_create_homepage... OK
  Applying sessions.0001_initial... OK
  Applying taggit.0001_initial... OK
  Applying wagtailadmin.0001_create_admin_access_permissions... OK
  Applying wagtaildocs.0001_initial... OK
  Applying wagtaildocs.0002_initial_data... OK
  Applying wagtailembeds.0001_initial... OK
  Applying wagtailforms.0001_initial... OK
  Applying wagtailimages.0001_initial... OK
  Applying wagtailimages.0002_initial_data... OK
  Applying wagtailimages.0003_fix_focal_point_fields... OK
  Applying wagtailimages.0004_make_focal_point_key_not_nullable... OK
  Applying wagtailimages.0005_make_filter_spec_unique... OK
  Applying wagtailredirects.0001_initial... OK
  Applying wagtailsearch.0001_initial... OK
  Applying wagtailusers.0001_initial... OK

Then I just ran ./manage.py runserver, overlooking the fact that I hadn't created a superuser.




J. Maceo Quintanar

 


--
You received this message because you are subscribed to a topic in the Google Groups "Wagtail" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wagtail/opL59ms4QMA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wagtail+u...@googlegroups.com.
To post to this group, send an email to wag...@googlegroups.com.
Visit this group at http://groups.google.com/group/wagtail.
To view this discussion on the web, visit https://groups.google.com/d/msgid/wagtail/5A87A29C-0556-4BE1-BFD4-3FFC1481A953%40torchbox.com.
For more options, visit https://groups.google.com/d/optout.

Matthew Westcott

unread,
Jan 18, 2015, 2:53:20 PM1/18/15
to wag...@googlegroups.com
Ah, now I see the problem. "./manage.py migrate" doesn't actually create the account - I was confusing it with "./manage.py syncdb", which is obsolete as of Django 1.7. Now it is indeed necessary to run "./manage.py createsuperuser" - I'll update the documentation.

Cheers,
- Matt

J. Maceo Quintanar

unread,
Jan 18, 2015, 3:06:54 PM1/18/15
to wag...@googlegroups.com
Super. Cheers! 


J. Maceo Quintanar

 

--
You received this message because you are subscribed to a topic in the Google Groups "Wagtail" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wagtail/opL59ms4QMA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wagtail+u...@googlegroups.com.
To post to this group, send an email to wag...@googlegroups.com.
Visit this group at http://groups.google.com/group/wagtail.
Reply all
Reply to author
Forward
0 new messages