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

Django Suit version 2.0 #475

Open
37 of 51 tasks
darklow opened this issue Jan 31, 2016 · 269 comments
Open
37 of 51 tasks

Django Suit version 2.0 #475

darklow opened this issue Jan 31, 2016 · 269 comments
Labels

Comments

@darklow
Copy link
Owner

darklow commented Jan 31, 2016

Brace yourselves, this is going to be a long post!

I have bad news and good news.
The bad news is - Bootstrap 3 branch will be discontinued.
The good news is what is coming instead! 

Some history

Some time after i launched the very first Django Suit (DS) version I realised biggest challenge is to keep up with Django admin changes. And bs3 branch version proved that even more. I haven’t finished it yet as Django admin started changing quite a lot. New templates, new features, new styles etc. Third party apps are also changing and evolving a lot, therefore same problem existed with 3rd party apps too. I knew i needed to solve this issue before continuing.

Flexbox

Recently I did a lot of thinking and experimenting and because browsers have evolved significantly I found an answer to my problems - Flexbox. I’ve been working on Django Suit fresh rewrite for few weeks and haven’t overridden a single Django admin template and in the end of the post you can see real screenshot of what i achieved by CSS only.

So this is a short story how Django Suit v2.0 rewrite started.

I will try to avoid any Django admin templates override as long as possible and if needed i will use JS DOM manipulations instead of overriding templates, which gives a few huge benefits:
When Django admin templates changes, some minor visual bugs may appear, but it will not break anything.

Without overriding admin templates, we have much wider 3rd party app support. Any app that haven’t modified templates too much and use Django admin markup should work perfectly.
This gives us much wider Django version support range, however I think Django Suit will stay with 2-3 recent version support.

What’s new in Django Suit v2

  • Based on Bootstrap 4.0 (currently v4-alpha):
    • Moved from Less to Sass.
    • Flexbox usage and support.
    • Responsive sizing using rem units. To increase whole admin sizing (font-sizes, margins), all you have to do is change font-size for body tag.
  • Django 1.9+
  • Menu rewrite to MenuItem classes
  • FontAwesome icons
  • Demo app is part of Django Suit repository now
  • Toggle-able list top actions if any row is selected
  • Menu:
    • Horizontal navigation
    • Aligned right menu
    • Rewrite whole menu builder to MenuItem classes

So here is the current state of v2.0 rewrite.
No templates overridden except base_site.html:

image

Todo:

  • CSS: Base layout
  • CSS: List base layout
  • Menu builder rewrite
  • Custom admin view example
  • CSS: List states / cell / row attributes
  • CSS: Popups
  • CSS: Forms
    • CSS: Forms base
    • CSS: Regular and collapsible fieldsets
    • Form sizing handling (label and field column proportions)
    • Two column change form with submit row on right
    • Submit buttons debounce - avoid clicking submit twice
    • Form inlines
    • Tabular Inlines
    • Stacked Inlines
    • CSS: Submit row
    • CSS: Floating/fixed Submit row
    • CSS: Delete confirmation
    • Sticky submit box
  • CSS: Alerts & messages
  • Suit Widgets
    • AutosizedTextarea
    • EnclosedInput
    • LinkedSelect
  • Native Widgets
    • CSS: Date & Date time picker
    • CSS: Side to Side chooser
    • CSS: Many to Many select
    • CSS: Many to Many checkboxes
  • CSS: Footer
  • CSS: Responsiveness
  • CSS: Login
  • CSS: Left side menu
  • Horizontal list filters
  • Form Tabs
  • Form Includes
  • Warning on leaving if unconfirmed changes
  • Print styles for list and forms.
  • Sortables
    • For tabular inline
    • For Stacked inline
    • For admin change list
  • Django support:
    • Django 1.9
    • Django 1.10
    • Django 1.11
  • Examples:
  • Documentation

If you're ok with incomplete features and missing documentation (demo app with all examples is included) then feel free to install or even use it for production (I personally use it in production for a few projects already):

pip install https:/darklow/django-suit/tarball/v2

In requirements.txt:

 -e git:/darklow/django-suit.git@v2#egg=django-suit

Work in progress links:
v2 demo: http://v2.djangosuit.com/admin/
v2 branch: https:/darklow/django-suit/tree/v2
v2 docs: http://django-suit.readthedocs.org/en/v2/

Feel free to share your thoughts.

@darklow darklow added the v2 label Jan 31, 2016
@chris-erickson
Copy link

We use Suit on every project (paid!), and it looks like the future is going to be good. 🎩 Really appreciate the work you've done.

@fyaconiello
Copy link

Any ballpark when suit v2 is going to be ready? I have a couple paid django 1.x folks i wanted to upgrade to 1.9, but i'm afraid to break their admin.

@gamesbook
Copy link

I really hope we will see support for Django 1.8 as that is a long term release - that could be a deal--breaker.

@gamesbook
Copy link

gamesbook commented Feb 2, 2016

Also hope to see the left-menu option retained as an alternative to the top menu - there was a lot of discussion about this before -- the fact remains that there is simply more horizontal screen space than vertical and avoiding "bar creep" is very desirable.

@darklow
Copy link
Owner Author

darklow commented Feb 2, 2016

@gamesbook Thanks for your feedback. I'll look into Django 1.8 support. As the stage is early, probably I can adjust it to make work for both. Supporting Django LTS release makes sense.
And I added horizontal menu to features list as well, it was planned, just forgot to mention in roadmap.

@SalahAdDin
Copy link

What's about left or right sidebar?
I want all previous suit versio features.

@gamesbook
Copy link

@darklow Thanks for the positive feedback. This a great product that we hope to keep using and deploying further in future. (I see 1.8LTS has planned support through to April 2018).

@darklow
Copy link
Owner Author

darklow commented Feb 4, 2016

Day by day suit v2 is getting more and more mature.

Status update:

  • List layout fixes
  • Forms base
  • Submit row
  • Delete confimations

PS. You can see total progress in main issue description.

image

v2 demo: http://v2.djangosuit.com/admin/

@darklow
Copy link
Owner Author

darklow commented Feb 17, 2016

I know many of you will like these features that I just deployed ;)

  • Two column change form with submit row on right (with responsive fallback to bottom)
  • AutoSized textarea

You can see full list of updates in v2 branch commit log:
https:/darklow/django-suit/commits/v2

v2 demo:
http://v2.djangosuit.com/admin/demo/country/170/change/

image

@nchampsavoir
Copy link

This is really shaping up quite nicely. :)

2016-02-17 16:39 GMT+01:00 Kaspars Sprogis [email protected]:

I know many of you will like these features that I just deployed ;)

  • Two column change form with submit row on right (with responsive
    fallback to bottom)
  • AutoSized textarea

You can see full list of updates in v2 branch commit log:
https:/darklow/django-suit/commits/v2

v2 demo:
http://v2.djangosuit.com/admin/demo/country/170/change/

[image: image]
https://cloud.githubusercontent.com/assets/445304/13114625/f301e576-d59c-11e5-8290-0131349b6af6.png

v2 demo: http://v2.djangosuit.com/admin/


Reply to this email directly or view it on GitHub
#475 (comment)
.

@darklow
Copy link
Owner Author

darklow commented Feb 18, 2016

If anyone wants to contribute to Django framework and help Django Suit as well, there is a great chance to do it. There is an incomplete pull request at Django repository with a super-valuable feature started, which needs some help to make it to the final line. Author don't have time to finish what he started, however he already did a great job and almost finished it.

Django: Added template-based widget rendering
https://code.djangoproject.com/ticket/15667

Pull request and author comments about what still has to be done to finish it:
django/django#4848 (comment)

I will try to help as much as possible, but i already have my hands full with v2 and other things.
If we could get this PR by Django version 1.10 then no more hacks for widgets are needed and anyone can style any widgets with custom templates. I think this is awesome and very very valuable feature.

Thanks.

@darklow
Copy link
Owner Author

darklow commented Feb 18, 2016

Isn't this cute? :)
Native Django admin Date/Time widgets:

image

image

image

Live demo: http://v2.djangosuit.com/admin/demo/showcase/add/

@platzhersh
Copy link

This looks great! good job!
Am 18.02.2016 14:11 schrieb "Kaspars Sprogis" [email protected]:

Isn't this cute? :)
Native Django admin Date/Time widgets:

[image: image]
https://cloud.githubusercontent.com/assets/445304/13144158/8d5cac78-d651-11e5-8dc9-e68afb1371b1.png

[image: image]
https://cloud.githubusercontent.com/assets/445304/13144196/c078a90e-d651-11e5-8487-dff681331a31.png

[image: image]
https://cloud.githubusercontent.com/assets/445304/13144208/d2764850-d651-11e5-9769-7cafc9873da2.png

Live demo: http://v2.djangosuit.com/admin/demo/showcase/add/


Reply to this email directly or view it on GitHub
#475 (comment)
.

@luflow
Copy link

luflow commented Feb 18, 2016

Awesome!

@darklow
Copy link
Owner Author

darklow commented Feb 19, 2016

Some users with existing licenses asked if they can contribute or buy an upgrade fee for v2 in advance.
So even if this is complete rewrite, all you current licenses will be valid for v2 and therefore will be no upgrade fee. If you want to show your appreciation and support development of v2, you can use Donate feature or buy an extra license here:
http://djangosuit.com/pricing/#v2
Thank you!

@darklow
Copy link
Owner Author

darklow commented Feb 19, 2016

Sortables for change list and tabular inlines are ready!
http://v2.djangosuit.com/admin/demo/continent/
http://v2.djangosuit.com/admin/demo/continent/9/change/

Tips and Tricks
By these years I've learned a lot of how to extend Django admin and in new v2 documentation I will share a lot of my knowledge how to do that too.

Just added to demo app how to extend submit_line.html, object-tools or add custom admin actions for specific ModelAdmin:
http://v2.djangosuit.com/admin/demo/showcase/1/change/
https:/darklow/django-suit/blob/v2/demo/demo/templatetags/demo_tags.py#L6
https:/darklow/django-suit/blob/v2/demo/demo/admin.py#L190
https:/darklow/django-suit/blob/v2/demo/demo/admin.py#L119

Hope you find it useful ;)

@SalahAdDin
Copy link

👍

@darklow
Copy link
Owner Author

darklow commented Mar 3, 2016

Stacked inlines including Sortable Stacked inlines are now ready!
http://v2.djangosuit.com/admin/demo/showcase/1/change/
image

@SalahAdDin
Copy link

👍 I like it man!

@darklow
Copy link
Owner Author

darklow commented Mar 3, 2016

Anyone using v2.0 alpha in development already or is it just me? :)

@otondin
Copy link

otondin commented Mar 3, 2016

It's getting gorgeous! 👍

@landaverdelbo
Copy link

me in mexico, for school management - testing...

@darklow
Copy link
Owner Author

darklow commented Mar 5, 2016

Happy to announce next two handy features that are finished:

  • Form Tabs
  • Form Includes

Beta release is coming closer by each day!
http://v2.djangosuit.com/admin/demo/country/170/change/

image

image

@niteshrawat1995
Copy link

@darklow bro how can i override the templates like base_site.html , login.html of admin with your changes intact. I tries to directly override them via templates/admin/base_site.html but it removed your changes which were overlapping.

@darklow
Copy link
Owner Author

darklow commented Feb 3, 2020

Hi @darklow , price schemes of v2 is same as v1 right ?
Yes, and v1 licenses are valid for v2 too.

@darklow bro how can i override the templates like base_site.html , login.html of admin with your changes intact. I tries to directly override them via templates/admin/base_site.html but it removed your changes which were overlapping.

See example in demo app:
https:/darklow/django-suit/blob/v2/demo/demo/templates/admin/base_site.html

@pablovg2
Copy link

Hi, I am using this version but I have a problem with popup they are open in the same windows without popup

@pierre-H
Copy link

Any news ?

@paulocoutinhox
Copy link

It still active?

@madthew
Copy link

madthew commented Jun 7, 2021

It still active?
It's still good to be used. but if you need some specific features of Django 3.x or you hope to use something maintained I think the answer is not.

@pulse-mind
Copy link

It it can helps, You can have a look to the forks, at least mine is using django v3 for example.

@SalahAdDin
Copy link

Isn't it too late for this one?

@tjerkw
Copy link

tjerkw commented Jun 8, 2021

You can consider this project abandoned, don't use it for new projects.
The last update to the readme was from 2016!!!

We currently heavily depend on it, but it blocks us from upgrading django. Django's architecture is heavily depending on dynamic typing which makes it really hard to check if things are compatible. We run into runtime issues constantly.

@pulse-mind
Copy link

I am using my fork on django V3 and it works fine but not yet on prod.
If you like you can participate to mine.

@mhindery
Copy link

mhindery commented Jun 8, 2021

I am using the latest Django (v3.2.4) with Django-suit v1 currently in production. We also have a heavy dependancy on it, so we can't easily switch to a different package, or to v2 for that matter. My changes are on https:/mhindery/django-suit/tree/develop should it be useful to you.

@iflare3g
Copy link

@mhindery thanks so much! Which are your plans ? Will you maintain your fork ?
Django-suit is a heavy dependency also inside my project and it's a blocker for the Django 3 migration.
Obvs we can remove it and use the default Django Admin but we have to refactor and adjust every custom stuff we have built upon Django Suit

@mhindery
Copy link

We are in the same situation as you that the default Django admin is insufficient and we can't just refactor everything to a new package or version. I'm maintaining it in the sense that we run the latest Django at the company where I work, and if we notice something doesn't work anymore during upgrades, I fix it. There are probably things that we aren't using from django-suit which I thus cannot comment on that might be broken. I'm not building any new functionality in there. If you need both django-suit v1 and an uptodate Django version, you should be good with it.

@gamesbook
Copy link

I am using my fork on django V3 and it works fine but not yet on prod.
If you like you can participate to mine.

Is this a django-suit v2 fork? I very much doubt the original developer will ever return to v1 so to continue trying to update that is effectively going down a dead end (and it will eventually become unusable).

@iflare3g
Copy link

iflare3g commented Jun 11, 2021

yeah I've just tested your fork and it unblocks my migration to Django 3.x so it's perfect so far ( thanks so much!! )
my "fear" is that when a new LTS will drop, we will go back to the same situation so at that point it's better to remove it at all and start crying by refactoring inside the default admin panel 😞

@mhindery
Copy link

Mine is a v1 fork. I agree it is not a long-term solution and at some point in the future we'll have to re-evaluate it. However with the recent Django upgrades (2.x and 3.x) there hasn't been massive changes in the admin that needed big refactorings in django-suit; we aren't missing functionality from v2 and are happy with what v1 does, so it's just not worth investing into something different at this time.

@iflare3g
Copy link

@mhindery yup, agree with u!

@g2-im
Copy link

g2-im commented Oct 3, 2021

Hi,
I have install and configured. Then copied over template and css folders to my project. routing through base.html.
Recent install has no code in files such as dashboard, change_list, and others.
After logging into django admin. New top menu interface looks great. But as I click on any link say users...
the display gets disturbed and link contents floats to downside of the page and can not click on add user or any item. It seems bootstrap css issue but I gave up #...
Screenshot from 2021-10-04 01-06-44
not sure how to fix it.

@g2-im
Copy link

g2-im commented Oct 3, 2021

Content >> Custom view
of all registers admin views throws 404

Page not found (404)

Request Method: GET
http://127.0.0.1:8000/admin/custom/
django.contrib.admin.sites.catch_all_view

Using the URLconf defined in jvRTOms.urls, Django tried these URL patterns, in this order:

admin/ (?P.*)$

The current path, admin/custom/, matched the last one.

@g2-im
Copy link

g2-im commented Oct 3, 2021

My app folder pycache
shows files such as init.cpython-38.pyc

@g2-im
Copy link

g2-im commented Oct 3, 2021

Can someone help me with it??

@jorenham
Copy link

jorenham commented Oct 5, 2021

@g2-im This repo appears to be abandoned. But there is fork of v2 you could try: https:/pulse-mind/django-suit/tree/v2

@g2-im
Copy link

g2-im commented Oct 8, 2021

@g2-im This repo appears to be abandoned. But there is fork of v2 you could try: https:/pulse-mind/django-suit/tree/v2

Hi Mate,

I am new to Django. Can you direct me to about how to setup these projects and run on my PC.
Normally I am missing how to use the setup file in your codes that I downloaded from your link you advised.

Because if I can setup your project and run it then good platform for me to learn and fix some of issues.

Any youtube link or article can help me please.

Regards,

@g2-im
Copy link

g2-im commented Oct 9, 2021

I just learned from youtube.... :)
pip install -r requirements.txt
and
python setup.py develop

it links suit with demo ...;)

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

No branches or pull requests