Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions dev.requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
django==5.0.3
cloudinary==1.39.1
django-grappelli==3.0.8
django-cloudinary-storage==0.3.0
django-gamma-cloudinary==0.2.3
django-avatar==8.0.0
django-crispy-forms==2.1
crispy-bootstrap5==2024.2
django-recaptcha==4.0.0
django-slugify-processor==1.6.0
django-countries==7.6
django-summernote==0.8.20.0
django-extensions==3.2.3
django-robohash-svg==0.9.5
django-embed-video==1.4.9
django-imagekit==5.0.0
django-import-export==3.3.7
djangorestframework==3.15.1
django-tinymce==4.0.0
sorl-thumbnail==12.10.0
django-markdownx==4.0.7
django-hitcount==1.3.5
django-taggit==5.0.1
django-thumbs-v2==0.4.1
django-simple-history==3.5.0
hashids==1.3.1
django-hashid-field==3.4.0
django-next-prev==1.1.0
pytz==2024.1
6 changes: 2 additions & 4 deletions pyconafrica/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/


ALLOWED_HOSTS = ["*"]

LOGIN_REDIRECT_URL = "/accounts/profile/"
SIGNUP_REDIRECT_URL = "/accounts/profile/"
LOGOUT_REDIRECT_URL = "/"
Expand Down Expand Up @@ -212,9 +210,9 @@
os.path.join(BASE_DIR, 'static')
]


# if not os.environ.get("DEBUG"):
#STATICFILES_STORAGE = 'gamma_cloudinary.storage.StaticCloudinaryStorage'
DEFAULT_FILE_STORAGE = 'gamma_cloudinary.storage.CloudinaryStorage'
# DEFAULT_FILE_STORAGE = 'gamma_cloudinary.storage.CloudinaryStorage'


# Absolute filesystem path to the directory that will hold user-uploaded files.
Expand Down
30 changes: 2 additions & 28 deletions registration/models.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from avatar.models import Avatar
import datetime
import hashlib
import logging
import re
import string
import warnings
import magic

from django.utils import timezone
from django.apps import apps
Expand All @@ -26,9 +24,6 @@
from .users import UserModelString
from .utils import _

from taggit.managers import TaggableManager
from django.utils.deconstruct import deconstructible
from django.template.defaultfilters import filesizeformat
from markdownx.models import MarkdownxField

logger = logging.getLogger(__name__)
Expand All @@ -40,33 +35,16 @@
from django_extensions.db.fields import AutoSlugField
from django_slugify_processor.text import slugify

from imagekit.models import ProcessedImageField
from imagekit.processors import ResizeToFit
from six import python_2_unicode_compatible

# Included by me (3rd Parties and more)
from django.utils.encoding import smart_str
from django.contrib.auth import hashers

from PIL import Image, ImageDraw
from PIL import Image
cfgDefaultImageResample = Image.BICUBIC # Image.LANCZOS

from django.utils.translation import gettext_lazy as _
from django.urls import reverse
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
from io import BytesIO
import logging
from django.core.files.base import ContentFile
from django_thumbs.fields import ImageThumbsField

from simple_history.models import HistoricalRecords
import os
from django.utils import timezone
from django.core.validators import MaxLengthValidator

from avatar.models import AvatarField
from django.utils import timezone

from django_countries.fields import CountryField

Expand All @@ -76,13 +54,9 @@
from hitcount.views import HitCountMixin

from django.contrib.contenttypes.fields import GenericRelation
from django_recaptcha.fields import ReCaptchaField

from hashids import Hashids
from django.conf import settings
from hashid_field import HashidAutoField
from hashid_field import HashidField



def get_from_email(site=None):
Expand Down
9 changes: 0 additions & 9 deletions static/2020/js/.idea/js.iml

This file was deleted.

6 changes: 0 additions & 6 deletions static/2020/js/.idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions static/2020/js/.idea/modules.xml

This file was deleted.

180 changes: 0 additions & 180 deletions static/2020/js/.idea/workspace.xml

This file was deleted.

9 changes: 0 additions & 9 deletions static/2024/js/.idea/js.iml

This file was deleted.

6 changes: 0 additions & 6 deletions static/2024/js/.idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions static/2024/js/.idea/modules.xml

This file was deleted.

Loading