Skip to content
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

Introduction questions #1

Open
ghost opened this issue Nov 15, 2016 · 4 comments
Open

Introduction questions #1

ghost opened this issue Nov 15, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 15, 2016

Hi, I like the idea, good work. Well I was observing the code, and I see that technically you create a tunnel which will dynamically generate the views and responses for each model, but you have proved the performance of these operations in counterpart with creating each view separately?

Have you used django-dedal in production? what does dedal mean?

@ar4s
Copy link
Owner

ar4s commented Nov 17, 2016

Hello,

Thanks for feedback. Basically, I was inspired by Django's admin. I use same way to add views to urls.py (compare https://github.com/ar4s/django-dedal/blob/master/dedal/site.py#L98 to https://github.com/django/django/blob/master/django/contrib/admin/sites.py#L507 and https://github.com/ar4s/django-dedal/blob/master/dedal/site.py#L83-L91 to https://github.com/django/django/blob/master/django/contrib/admin/sites.py#L249-L254) where site is import from dedal.site which is singleton and initialize once at start application. I didn't do anything to measure performance of this solution because I use dedal as a lightweight alternative to Django's admin when I must prototype something quickly.

dedal is related to Daedalus which was craftsman in Greek mythology and he also created the famous labyrinth :)

@ghost
Copy link
Author

ghost commented Nov 21, 2016

@ar4s thanks for answering, you still use it ? i think it could help, i like because it is more simpler than django.contrib.admin. less things to learn :D

@ghost ghost changed the title some questions Introduction questions Nov 21, 2016
@ar4s
Copy link
Owner

ar4s commented Nov 21, 2016

I'm still using :) but I have some changes related to master branch. Yeah, django.contrib.admin is complex solution but is hard to customize it. Please keep in mind - django-dedal is not replacement for django.contrib.admin, it's only simple package which provides CRUD to your model by simple decorator on model. I like django.contrib.admin beacause I learn a lot :) and django-dedal is a result of this lesson.

@ghost
Copy link
Author

ghost commented Nov 23, 2016

that's why i like django_dedal, django.contrib.admin it's a great app, but it is hard to learn and use it. the django docs says

django.contrib.admin
... It’s not intended for building your entire front end around. ...

but django_dedal can be the simple better solution (At least for models), if it's extensible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant