Spaces:
Sleeping
Sleeping
File size: 495 Bytes
1e932e0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
from django import forms
from .gee import data_gee
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
class dataset_geemap(forms.Form):
data, f = data_gee()
options = [(row['id'], row['title']) for index, row in data.iterrows()]
option = forms.ChoiceField(choices=options)
class SignUpForm (UserCreationForm):
class Meta:
model=User
fields = {'username','email', 'password1', 'password2'} |