Skip to main content

Erscimenu

Create UL LI html menu from django model queryset . into your views or your template.

Quick start

Add erscimenu to your INSTALLED_APPS setting like this: INSTALLED_APPS = [ ..., 'erscimenu' , ]

2.(Optional) Register Ulmenu to admin like this:

from erscimenu.models import Ulmenu

admin.site.register(Ulmenu)

and add your menu into it.

3.Run python manage.py makemigrations and python manage.py migrate to create the Ulmenu models.

4.Use this command to add menu with your views:

from erscimenu.menu import MenuClass

from erscimenu.models import Ulmenu

cl = MenuClass()

clmenu = cl.ulmenu(Ulmenu.objects.all(),None)

return render(request,"index.html",{'model' : model })

Note : 'model' is variable to use in your template.

Or create your model like this:

class Ulmenu(models.Model):

title = models.CharField(max_length=100)

css_class = models.CharField(max_length=100,null=True,blank=True)

link = models.CharField(max_length=1000,null=True,blank=True)

parent = models.ForeignKey("self", models.DO_NOTHING,null=True,blank=True,db_column='parent',related_name='children') 

def __str__(self):

	return self.title

4.Run python manage.py runserver Visit http://127.0.0.1:8000 to create users and its cards.

Metadata

Release files for erscimenu 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for erscimenu 1.0.4
File Size Uploaded Provenance Actions
erscimenu-1.0.4.tar.gz 15.6 kB Without provenance Details for erscimenu-1.0.4.tar.gz

Release files / erscimenu-1.0.4.tar.gz

Download URL erscimenu-1.0.4.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ffc6f41494c00661ee109486b69341746a9d4ee2d96e384d5e153318e31333e0
BLAKE2b-256 checksum
How to use checksums
5b29c318544df53a49a703d862d93f667e34c7657c38d63f50c745ad762719d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for erscimenu 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page