<gh_stars>0
from django import forms
from .models import Image, Profile
from django_registration.forms import RegistrationForm
from urllib import request
class UploadForm(forms.ModelForm):
    # image = forms.ImageField()
    class Meta:
        model = Image
        exclude = ['likes','comments', 'profile','pub_date']

class RegisterForm(forms.Form):
    form = RegistrationForm()

class LoginForm(forms.Form):
    username = forms.CharField()
    password = forms.CharField()
class UpdateForm(forms.ModelForm):
    class Meta:
        model = Profile
        exclude = ["user", "following"]

from django import forms
from .models import Image, Profile
from django_registration.forms import RegistrationForm
from urllib import request
class UploadForm(forms.ModelForm):
    # image = forms.ImageField()
    class Meta:
        model = Image
        exclude = ['likes','comments', 'profile','pub_date']

class RegisterForm(forms.Form):
    form = RegistrationForm()

class LoginForm(forms.Form):
    username = forms.CharField()
    password = forms.CharField()
class UpdateForm(forms.ModelForm):
    class Meta:
        model = Profile
        exclude = ["user", "following"]
# image = forms.ImageField()