bien, ahora lo revisare, muchas gracias, y por no revisar detenidamente,
Post by unknownEs MEDIA_URL lo configuras en settings.py, muy parecido a STATIC_URL.
Te recomiendo leer la documentación.
Vez la linea al final del stack trace? Esa linea es el error.
ImportError: No module named froms
ErrorAlImportar: No modulo llamado froms
Y esas 2 lineas arribas. Te indican donde fue.
File "/home/hackerzeta/hhcc/sistema/histoconscalchaqui/views.py", line
9, in <module>
from histoconscalchaqui.froms import UploadForm
Archivo "/home/hackerzeta/hhcc/sistema/histoconscalchaqui/views.py",
linea 9, en <modulo>
from histoconscalchaqui.froms import UploadForm
from histoconscalchaqui.*froms* import UploadForm
debe de ser forms
El 24 de agosto de 2014, 18:20, Pablo Ezequiel Ferreyra
el error que me tira, es el siguiente, a la hora de hacer syncdb
python manage.py syncdb
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 399, in execute_from_command_line
utility.execute()
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
line 284, in execute
self.validate()
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
line 310, in validate
num_errors = get_validation_errors(s, app)
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py",
line 34, in get_validation_errors
File
"/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py",
line 196, in get_app_errors
self._populate()
File
"/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py",
line 78, in _populate
self.load_app(app_name)
File
"/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py",
line 99, in load_app
models = import_module('%s.models' % app_name)
File
"/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line
40, in import_module
__import__(name)
File
"/usr/local/lib/python2.7/dist-packages/debug_toolbar/models.py",
line 9, in <module>
dt_settings.patch_all()
File
"/usr/local/lib/python2.7/dist-packages/debug_toolbar/settings.py", line
215, in patch_all
patch_root_urlconf()
File
"/usr/local/lib/python2.7/dist-packages/debug_toolbar/settings.py", line
203, in patch_root_urlconf
reverse('djdt:render_panel')
File
"/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py",
line 503, in reverse
app_list = resolver.app_dict[ns]
File
"/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py",
line 329, in app_dict
self._populate()
File
"/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py",
line 267, in _populate
File
"/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py",
line 365, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File
"/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py",
line 360, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File
"/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line
40, in import_module
__import__(name)
File "/home/hackerzeta/hhcc/sistema/sistema/urls.py", line 11,
in <module>
url(r'^histoconscalchaqui/', include('histoconscalchaqui.urls')),
File
"/usr/local/lib/python2.7/dist-packages/django/conf/urls/__init__.py",
line 26, in include
urlconf_module = import_module(urlconf_module)
File
"/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line
40, in import_module
__import__(name)
File "/home/hackerzeta/hhcc/sistema/histoconscalchaqui/urls.py",
line 3, in <module>
from histoconscalchaqui import views
File
"/home/hackerzeta/hhcc/sistema/histoconscalchaqui/views.py", line
9, in <module>
from histoconscalchaqui.froms import UploadForm
ImportError: No module named froms
donde configuro el MEDIA_URL? perdon que pregunte esto, es que
estoy aprendiendo a prueba y error este lenguaje
Post by unknown1. No hardcodes rutas.
2. Mantén los datos sensibles en variables de entorno.
3. No veo que tengas configurado MEDIA_URL.
4. Asegúrate que tengas permisos de escritura y lectura en MEDIA_ROOT
5. Si nos dieras el stacktrace o nos dijeras donde le marca error
podríamos ayudarte mas rápido.
El 24 de agosto de 2014, 17:15, Pablo Ezequiel Ferreyra
hola gente, paso a dejar mi consulta, por que me esta
volviendo loco, y es que tengo un proyecto encaminado, pero
no logro hacer que me responda la carga de archivos por
python, no se que estoy haciendo mal, por eso mismo dejo aca
el repo de git para que alguien que me quiera dar una mano
(se lo agradeceria) me ayude a resolverlo
https://github.com/hackerzeta/sistema
desde ya, muchas gracias, y saludos
_______________________________________________
Python-es mailing list
Python-es en python.org <mailto:Python-es en python.org>
https://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/
_______________________________________________
Python-es mailing list
Python-es en python.org <mailto:Python-es en python.org>
https://mail.python.org/mailman/listinfo/python-es
FAQ:http://python-es-faq.wikidot.com/
_______________________________________________
Python-es mailing list
Python-es en python.org <mailto:Python-es en python.org>
https://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/
_______________________________________________
Python-es mailing list
Python-es en python.org
https://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20140824/553bff9c/attachment.html>