Ok, sorry for the delayed response, I was a bit busy the last few days

The error is the location argument for your FileSystemStorage. It
should be a string and you are passing a tuple. That's why you get a
TypeError with illegal type for parameter.
Have you tried to entirely remove the storage argument to your
models.FileField ? By default, upload_to refer to a subfolder of
MEDIA_ROOT, which you can specify in you settings.py file.

2017-02-09 1:02 GMT+01:00 ايهاب توفيق <e.bugaig...@gmail.com>:
> hi this backtrace
>
> Performing system checks...
>
> System check identified no issues (0 silenced).
> Unhandled exception in thread started by <function
> check_errors.<locals>.wrapper at 0x036B8588>
> Traceback (most recent call last):
>   File
> "C:\Users\e.bugaighis\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\utils\autoreload.py",
> line 226, in wrapper
>     fn(*args, **kwargs)
>   File
> "C:\Users\e.bugaighis\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\core\management\commands\runserver.py",
> line 117, in inner_run
>     self.check_migrations()
>   File
> "C:\Users\e.bugaighis\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\core\management\commands\runserver.py",
> line 163, in check_migrations
>     executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
>   File
> "C:\Users\e.bugaighis\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\db\migrations\executor.py",
> line 20, in __init__
>     self.loader = MigrationLoader(self.connection)
>   File
> "C:\Users\e.bugaighis\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\db\migrations\loader.py",
> line 49, in __init__
>     self.build_graph()
>   File
> "C:\Users\e.bugaighis\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\db\migrations\loader.py",
> line 170, in build_graph
>     self.load_disk()
>   File
> "C:\Users\e.bugaighis\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\db\migrations\loader.py",
> line 105, in load_disk
>     migration_module = import_module("%s.%s" % (module_name,
> migration_name))
>   File
> "C:\Users\e.bugaighis\AppData\Local\Programs\Python\Python35-32\lib\importlib\__init__.py",
> line 126, in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>   File "<frozen importlib._bootstrap>", line 986, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 969, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 665, in exec_module
>   File "<frozen importlib._bootstrap>", line 222, in
> _call_with_frames_removed
>   File
> "C:\Users\e.bugaighis\Desktop\ehab\test001\migrations\0007_auto_20161213_1444.py",
> line 9, in <module>
>     class Migration(migrations.Migration):
>   File
> "C:\Users\e.bugaighis\Desktop\ehab\test001\migrations\0007_auto_20161213_1444.py",
> line 19, in Migration
>     field=models.FileField(blank=True, null=True,
> storage=django.core.files.storage.FileSystemStorage(location=('C:\\Users\\e.bugaighis\\Desktop\\ehab\\media',)),
> upload_to='/media/'),
>   File
> "C:\Users\e.bugaighis\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\core\files\storage.py",
> line 185, in __init__
>     self.location = abspathu(self.base_location)
>   File
> "C:\Users\e.bugaighis\AppData\Local\Programs\Python\Python35-32\lib\ntpath.py",
> line 535, in abspath
>     path = _getfullpathname(path)
> TypeError: _getfullpathname: illegal type for path parameter
>
> بتاريخ الخميس، 26 يناير، 2017 1:04:28 ص UTC+2، كتب ايهاب توفيق:
>>
>> I am new in django and to know how to use multiple file field in the same
>> model can any one help me
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/99a9c6a2-2019-4b71-8542-1710bb9ebff7%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 

Cordialement, Coues Ludovic
+336 148 743 42

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEuG%2BTZX7Q10UdQXi%3DWdyxAwxo2_84JRtagY2Sp_FyegF%3DKc1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to