-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forward to /admin/login/?next=/admin/
and 500 when trying out admin panel
#23
Comments
/admin/login/?next=/admin/
and 500 when trying out admin panel
I noticed this too. A short term fix, if you are just trying things out, is to set debug to true when starting your app, this seems to fix it: app = Django(
...
DEBUG=True,
) |
Thanks for spotting this - it was a bug in how uvicorn is instantiated in dev mode. This should be fixed in 28681ec and the imminent 0.9.1 release |
Still seems to be an issue. The admin only works if app = Django(
DEBUG=True,
ADMIN_URL='admin/',
)
class Capability(models.Model):
info = models.TextField(
verbose_name='Info'
)
class CapabilityAdmin(admin.ModelAdmin):
pass
admin.site.register(Capability, CapabilityAdmin) |
The issue is in relation to staticfiles. It works fine with I honestly find the amount of different commands quite irritating. edit: Might also be worth noting for admin auth to work in "production", |
Thanks for this info, I'll look into this again shortly. Regarding the different commands, there's |
I tried running the default example and went to the
/admin
url. This caused a 500 after it tried forwarding me. Here is the logline.Did I mess something up? I would have expected the admin panel to be available from the get-go but I may have skipped a step.
The text was updated successfully, but these errors were encountered: