gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
1
core/http/management/__init__.py
Executable file
1
core/http/management/__init__.py
Executable file
@@ -0,0 +1 @@
|
||||
from .core import * # noqa
|
||||
0
core/http/management/commands/__init__.py
Executable file
0
core/http/management/commands/__init__.py
Executable file
16
core/http/management/commands/clearcache.py
Executable file
16
core/http/management/commands/clearcache.py
Executable file
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
Clear cache command
|
||||
"""
|
||||
|
||||
from django.core.cache import cache
|
||||
from django.core.management import BaseCommand
|
||||
|
||||
from core.utils import console
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "Clear all caches"
|
||||
|
||||
def handle(self, *args, **options):
|
||||
cache.clear()
|
||||
console.Console.success("Cache cleared successfully")
|
||||
10
core/http/management/core.py
Executable file
10
core/http/management/core.py
Executable file
@@ -0,0 +1,10 @@
|
||||
from django.db.models.manager import BaseManager as BManager
|
||||
from django.db.models.query import QuerySet
|
||||
|
||||
|
||||
class BaseQuerySet(QuerySet):
|
||||
pass
|
||||
|
||||
|
||||
class BaseManager(BManager):
|
||||
pass
|
||||
Reference in New Issue
Block a user