i create new app call : upload_file
1- i create models.py :
*from django.conf import settingsfrom django.db import modelsfrom
django.core.files import File# Backwards compatible
settings.AUTH_USER_MODELUSER_MODEL = getattr(settings, 'AUTH_USER_MODEL',
'auth.User')class upload(models.Model): user =
models.OneToOneField(USER_MODEL, null=True) title =
models.CharField(max_length=255, blank=True) fileup =
models.FileField(upload_to='../../../../edx/var/edxapp/media/' )
uploaded_at = models.DateTimeField(auto_now_add=True) *
2- my forms.py :
*from .models import uploadfrom django.forms import ModelFormfrom
django.core.files import Filefrom django.db.models import FileFieldclass
uploadform(ModelForm): class Meta: model =
upload fields = ('title', 'fileup')*
3- my migration
every things look good in my localhost/admin i can upload my file and
assign that to a user and data inserted to database successfully
my issue is :
when i open my localhost
this is the page i got in my registration-page
and in my log.edx which is for LMS i got :
Field type '{}' not recognized for registration extension field '{}
[image: regpage.png]
--
You received this message because you are subscribed to the Google Groups
"General Open edX discussion" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/edx-code/676df830-2dce-4d6c-86fd-d86c941e09a9%40googlegroups.com.