This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineConfig } from 'vite' | |
import react from '@vitejs/plugin-react' | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
//base: "/static/", | |
build: { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# template models | |
class Template(models.Model): | |
user = models.ForeignKey(User, on_delete=models.CASCADE, null=True) | |
profile = models.ForeignKey(Profile,null=True,blank=True, on_delete=models.SET_NULL) | |
creator = models.CharField(max_length=200, null=True, blank=True) | |
title = models.CharField(max_length=200, null=True, blank=True) | |
thumbnail = models.ImageField(null=True, blank=True, ) | |
category = models.CharField(max_length=200, null=True, blank=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
#from django.contrib.auth.models import User | |
# Create your models here. | |
class User(models.Model): | |
name = models.CharField(max_length=200, null=True, blank=True) | |
email = models.EmailField(max_length=200, null=True, blank=True) | |
occupation = models.CharField(max_length=200, null=True, blank=True) | |
image = models.ImageField(null=True, blank=True, ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import name | |
from django.db import models | |
#from django.contrib.auth.models import User | |
#this is the user model with my desire fields | |
# Create your models here. | |
class User(models.Model): | |
name = models.CharField(max_length=200, null=True, blank=True) | |
email = models.EmailField(max_length=200, null=True, blank=True) | |
occupation = models.CharField(max_length=200, null=True, blank=True) |