Skip to content

Instantly share code, notes, and snippets.

View AshishPandagre's full-sized avatar

Ashish Pandagre AshishPandagre

View GitHub Profile

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@AshishPandagre
AshishPandagre / admin.py
Created October 19, 2020 10:06
creating a custom user model in django-allauth.
#---------some_app/admin.py-------------
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import User
class CustomUserAdmin(UserAdmin):
@AshishPandagre
AshishPandagre / app_admin.py
Last active March 7, 2024 05:40
Add tinymce editor in django (along with drag and drop image upload)
from django.contrib import admin
from .models import Post
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
class Media:
js = ('tinyInject.js',)