Atma
Atma

Reputation: 29795

where to place class file common to all apps in a django project?

I am creating a custom decorator class that I will use in each app in my django project. Where is the best place to put this class file?

I was thinking about creating another app in the project called "Utils" or something.

Is there a standard for this situation?

Upvotes: 3

Views: 619

Answers (1)

jdero
jdero

Reputation: 1817

Atma - just make an application using the manage.py startapp myapp command.

It seems as if you already know what to do. Not sure why you posted it here.

You can always extend existing classes. It's pretty straightforward.

Upvotes: 2

Related Questions