meeb / django-distill

Minimal configuration static site generator for Django
MIT License
441 stars 35 forks source link

how do i use django admin #63

Closed ricardosmbr closed 2 years ago

ricardosmbr commented 2 years ago

i need to use django admin It's possible ? this distill_path generates error distill_path('', admin.site.urls, name=''),

meeb commented 2 years ago

Hi, I'm not entirely sure what you want to do here. Why do you want to create the static output of the Django admin page? If you just want to use the default admin CMS and have a statically rendered output site you can use the admin as normal (not wrap its URLs in distill_path) and that will work fine.

See here:

https://github.com/meeb/django-distill-example/blob/master/demoblog/urls.py

and here:

https://github.com/meeb/django-distill-example/blob/master/blog/urls.py

as an example.

meeb commented 2 years ago

I'll close this for now, but feel free to comment if you have any additional questions.