Tuesday, May 1, 2018

Re: AttributeError at /admin/login/

Finally solved this problem by installing python3-dev & libmysqlclient-dev and then I was able to install mysqlclient.

Case closed!!!


On Tuesday, 01 May, 2018 07:09 PM, Gerald Brown wrote:
As a follow-up with further information.  This error occurs when on the Admin login screen I enter the user name and password and then click "SUBMIT".

The Exception Location is: "/home/medrec2/.virtualenvs/medrecproj/lib/python3.5/site-packages/mysql/connector/conversion.py in _DATETIME_to_python, line 506".

Is there another db connector I can use to connect to the Mariadb database?

On Tuesday, May 1, 2018 at 7:45:47 AM UTC+8, Gerald Brown wrote:

I had replied to Daniel Roseman instead of to the users group as I am new to this group.

Thanks to Daniel for his response



-------- Forwarded Message --------
Subject: Re: AttributeError at /admin/login/
Date: Mon, 30 Apr 2018 21:46:35 +0800
From: Gerald Brown 
To: Daniel Roseman 


No. You need to show the full traceback.
--
DR. 
--
Here is the full traceback.  It is quite long.

AttributeError at /admin/login/

'datetime.datetime' object has no attribute 'split'
Request Method: POST
Request URL: http://192.168.0.122/admin/login/?next=/admin/
Django Version: 2.0.4
Exception Type: AttributeError
Exception Value:
'datetime.datetime' object has no attribute 'split'
Exception Location: /home/medrec2/.local/lib/python3.6/site-packages/mysql/connector/conversion.py in _DATETIME_to_python, line 506
Python Executable: /home/medrec2/.virtualenvs/medrecproj/bin/python3.6
Python Version: 3.6.5
Python Path:
['/home/medrec2/medrecproj',   '/home/medrec2/.virtualenvs/medrecproj/bin',   '/usr/local/lib/python36.zip',   '/usr/local/lib/python3.6',   '/usr/local/lib/python3.6/lib-dynload',   '/home/medrec2/.local/lib/python3.6/site-packages',   '/usr/local/lib/python3.6/site-packages']
Server time: Sun, 29 Apr 2018 18:31:23 +0800

Traceback Switch to copy-and-paste view

  • /home/medrec2/.local/lib/python3.6/site-packages/django/core/handlers/exception.py in inner
    1.             response = get_response(request)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/core/handlers/base.py in _get_response
    1.                 response = self.process_exception_by_middleware(e, request)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/core/handlers/base.py in _get_response
    1.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/views/decorators/cache.py in _wrapped_view_func
    1.         response = view_func(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/admin/sites.py in login
    1.         return LoginView.as_view(**defaults)(request)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/views/generic/base.py in view
    1.             return self.dispatch(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in _wrapper
    1.             return bound_func(*args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/views/decorators/debug.py in sensitive_post_parameters_wrapper
    1.             return view(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in bound_func
    1.                 return func.__get__(self, type(self))(*args2, **kwargs2)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in _wrapper
    1.             return bound_func(*args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in _wrapped_view
    1.                     response = view_func(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in bound_func
    1.                 return func.__get__(self, type(self))(*args2, **kwargs2)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in _wrapper
    1.             return bound_func(*args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/views/decorators/cache.py in _wrapped_view_func
    1.         response = view_func(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in bound_func
    1.                 return func.__get__(self, type(self))(*args2, **kwargs2)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/auth/views.py in dispatch
    1.         return super().dispatch(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/views/generic/base.py in dispatch
    1.         return handler(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/views/generic/edit.py in post
    1.         if form.is_valid():
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/forms/forms.py in is_valid
    1.         return self.is_bound and not self.errors
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/forms/forms.py in errors
    1.             self.full_clean()
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/forms/forms.py in full_clean
    1.         self._clean_form()
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/forms/forms.py in _clean_form
    1.             cleaned_data = self.clean()
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/auth/forms.py in clean
    1.             self.user_cache = authenticate(self.request, username=username, password=password)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/auth/__init__.py in authenticate
    1.             user = _authenticate_with_backend(backend, backend_path, request, credentials)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/auth/__init__.py in _authenticate_with_backend
    1.     return backend.authenticate(*args, **credentials)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/auth/backends.py in authenticate
    1.             user = UserModel._default_manager.get_by_natural_key(username)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/auth/base_user.py in get_by_natural_key
    1.         return self.get(**{self.model.USERNAME_FIELD: username})
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/manager.py in manager_method
    1.                 return getattr(self.get_queryset(), name)(*args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/query.py in get
    1.         num = len(clone)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/query.py in __len__
    1.         self._fetch_all()
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/query.py in _fetch_all
    1.             self._result_cache = list(self._iterable_class(self))
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/query.py in __iter__
    1.         for row in compiler.results_iter(results):
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/sql/compiler.py in apply_converters
    1.         for row in map(list, rows):
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/sql/compiler.py in cursor_iter
    1.         for rows in iter((lambda: cursor.fetchmany(itersize)), sentinel):
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/sql/compiler.py in <lambda>
    1.         for rows in iter((lambda: cursor.fetchmany(itersize)), sentinel):
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/utils.py in inner
    1.                 return func(*args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/mysql/connector/cursor_cext.py in fetchmany
    1.             rows.extend(self._cnx.get_rows(size))
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/mysql/connector/connection_cext.py in get_rows
    1.                                                           row[i])
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/mysql/connector/conversion.py in to_python
    1.             return self._cache_field_types[vtype[1]](value, vtype)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/mysql/connector/django/base.py in _DATETIME_to_python
    1.         dt = MySQLConverter._DATETIME_to_python(self, value)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/mysql/connector/conversion.py in _DATETIME_to_python
    1.             (date_, time_) = value.split(b' ')
      ...


As it shows most of the errors occur in the site-packages/mysql/connector.  I am using the mysql-connector-python to connect to the Mariadb database.  I have this same application running on another computer and I do NOT get this error.

Thanks for your reply.

--
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+unsubscribe@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/583559d9-1d45-429e-adc0-51cd6d408104%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[Errno 10053] An established connection was aborted by the software in your host machine


This is the error im getting  and cant figure out the solution

PS:I dont have antiVirus installed currently and firewall is on
Windows 7 PC django version=1.10.5 

--
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+unsubscribe@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/e144378b-7996-4d8f-9ca6-e234c123b4ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Designed page in Adobe Muse as html not showing on browser

I have designed a page in adobe muse and exported in html to use with Django all is perfect no errors but when run it is not showing anything on the browser.

Asifs-iMac4K:aisite asifkhan$ python3 manage.py runserver

Performing system checks...


System check identified no issues (0 silenced).


You have 14 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.

Run 'python manage.py migrate' to apply them.


May 01, 2018 - 11:10:36

Django version 2.0.4, using settings 'aisite.settings'

Starting development server at http://127.0.0.1:8000/

Quit the server with CONTROL-C.

Not Found: /

[01/May/2018 11:10:45] "GET / HTTP/1.1" 404 2028

[01/May/2018 11:10:59] "GET /airbot/ HTTP/1.1" 200 15817

[01/May/2018 11:10:59] "GET /airbot/scripts/museutils.js?crc=388970469 HTTP/1.1" 200 15817

[01/May/2018 11:11:15] "GET /airbot/ HTTP/1.1" 200 15817

[01/May/2018 11:11:15] "GET /airbot/scripts/museutils.js?crc=388970469 HTTP/1.1" 200 15817

[01/May/2018 11:11:35] "GET /airbot/scripts/museutils.js?crc=388970469 HTTP/1.1" 200 15817

[01/May/2018 11:11:35] "GET /airbot/ HTTP/1.1" 200 15817


No errors in web server. Being a new in Django very hard to figure hard out what is the problem.


--
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+unsubscribe@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/e509d364-44a4-4944-a0af-f42ac09966b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Re: AttributeError at /admin/login/

As a follow-up with further information.  This error occurs when on the Admin login screen I enter the user name and password and then click "SUBMIT".

The Exception Location is: "/home/medrec2/.virtualenvs/medrecproj/lib/python3.5/site-packages/mysql/connector/conversion.py in _DATETIME_to_python, line 506".

Is there another db connector I can use to connect to the Mariadb database?

On Tuesday, May 1, 2018 at 7:45:47 AM UTC+8, Gerald Brown wrote:

I had replied to Daniel Roseman instead of to the users group as I am new to this group.

Thanks to Daniel for his response



-------- Forwarded Message --------
Subject: Re: AttributeError at /admin/login/
Date: Mon, 30 Apr 2018 21:46:35 +0800
From: Gerald Brown 
To: Daniel Roseman 


No. You need to show the full traceback.
--
DR. 
--
Here is the full traceback.  It is quite long.

AttributeError at /admin/login/

'datetime.datetime' object has no attribute 'split'
Request Method: POST
Request URL: http://192.168.0.122/admin/login/?next=/admin/
Django Version: 2.0.4
Exception Type: AttributeError
Exception Value:
'datetime.datetime' object has no attribute 'split'
Exception Location: /home/medrec2/.local/lib/python3.6/site-packages/mysql/connector/conversion.py in _DATETIME_to_python, line 506
Python Executable: /home/medrec2/.virtualenvs/medrecproj/bin/python3.6
Python Version: 3.6.5
Python Path:
['/home/medrec2/medrecproj',   '/home/medrec2/.virtualenvs/medrecproj/bin',   '/usr/local/lib/python36.zip',   '/usr/local/lib/python3.6',   '/usr/local/lib/python3.6/lib-dynload',   '/home/medrec2/.local/lib/python3.6/site-packages',   '/usr/local/lib/python3.6/site-packages']
Server time: Sun, 29 Apr 2018 18:31:23 +0800

Traceback Switch to copy-and-paste view

  • /home/medrec2/.local/lib/python3.6/site-packages/django/core/handlers/exception.py in inner
    1.             response = get_response(request)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/core/handlers/base.py in _get_response
    1.                 response = self.process_exception_by_middleware(e, request)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/core/handlers/base.py in _get_response
    1.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/views/decorators/cache.py in _wrapped_view_func
    1.         response = view_func(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/admin/sites.py in login
    1.         return LoginView.as_view(**defaults)(request)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/views/generic/base.py in view
    1.             return self.dispatch(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in _wrapper
    1.             return bound_func(*args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/views/decorators/debug.py in sensitive_post_parameters_wrapper
    1.             return view(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in bound_func
    1.                 return func.__get__(self, type(self))(*args2, **kwargs2)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in _wrapper
    1.             return bound_func(*args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in _wrapped_view
    1.                     response = view_func(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in bound_func
    1.                 return func.__get__(self, type(self))(*args2, **kwargs2)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in _wrapper
    1.             return bound_func(*args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/views/decorators/cache.py in _wrapped_view_func
    1.         response = view_func(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/utils/decorators.py in bound_func
    1.                 return func.__get__(self, type(self))(*args2, **kwargs2)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/auth/views.py in dispatch
    1.         return super().dispatch(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/views/generic/base.py in dispatch
    1.         return handler(request, *args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/views/generic/edit.py in post
    1.         if form.is_valid():
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/forms/forms.py in is_valid
    1.         return self.is_bound and not self.errors
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/forms/forms.py in errors
    1.             self.full_clean()
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/forms/forms.py in full_clean
    1.         self._clean_form()
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/forms/forms.py in _clean_form
    1.             cleaned_data = self.clean()
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/auth/forms.py in clean
    1.             self.user_cache = authenticate(self.request, username=username, password=password)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/auth/__init__.py in authenticate
    1.             user = _authenticate_with_backend(backend, backend_path, request, credentials)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/auth/__init__.py in _authenticate_with_backend
    1.     return backend.authenticate(*args, **credentials)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/auth/backends.py in authenticate
    1.             user = UserModel._default_manager.get_by_natural_key(username)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/contrib/auth/base_user.py in get_by_natural_key
    1.         return self.get(**{self.model.USERNAME_FIELD: username})
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/manager.py in manager_method
    1.                 return getattr(self.get_queryset(), name)(*args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/query.py in get
    1.         num = len(clone)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/query.py in __len__
    1.         self._fetch_all()
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/query.py in _fetch_all
    1.             self._result_cache = list(self._iterable_class(self))
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/query.py in __iter__
    1.         for row in compiler.results_iter(results):
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/sql/compiler.py in apply_converters
    1.         for row in map(list, rows):
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/sql/compiler.py in cursor_iter
    1.         for rows in iter((lambda: cursor.fetchmany(itersize)), sentinel):
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/models/sql/compiler.py in <lambda>
    1.         for rows in iter((lambda: cursor.fetchmany(itersize)), sentinel):
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/django/db/utils.py in inner
    1.                 return func(*args, **kwargs)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/mysql/connector/cursor_cext.py in fetchmany
    1.             rows.extend(self._cnx.get_rows(size))
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/mysql/connector/connection_cext.py in get_rows
    1.                                                           row[i])
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/mysql/connector/conversion.py in to_python
    1.             return self._cache_field_types[vtype[1]](value, vtype)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/mysql/connector/django/base.py in _DATETIME_to_python
    1.         dt = MySQLConverter._DATETIME_to_python(self, value)
      ...
  • /home/medrec2/.local/lib/python3.6/site-packages/mysql/connector/conversion.py in _DATETIME_to_python
    1.             (date_, time_) = value.split(b' ')
      ...


As it shows most of the errors occur in the site-packages/mysql/connector.  I am using the mysql-connector-python to connect to the Mariadb database.  I have this same application running on another computer and I do NOT get this error.

Thanks for your reply.

--
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+unsubscribe@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/583559d9-1d45-429e-adc0-51cd6d408104%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Django and Fullcalendar.

Okay, then strip your template until you understand what's happening. 



Elias Coutinho <coutinho.elias@gmail.com> schrieb am Mo. 30. Apr. 2018 um 22:29:
No error, it returns a template full of cluttered tags.

2018-04-28 2:41 GMT-03:00 Andy <kakulukia@gmail.com>:
What kind of error are you getting?

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/ALIFMqCPCz0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@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/f157cd20-7ddd-4692-aa66-9ca028fb143a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Elias Coutinho.
Aprender sobre alguns assuntos é fundamental.
Aprender sobre Deus é indiscutivelmente o melhor conteúdo.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/ALIFMqCPCz0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@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/CALgom8pGb9J%2BEzByYrs-fbnf4GUhHW9-R4BkQcpp_HE1bxNLZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--

Mit besten Grüßen
Andy

--
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+unsubscribe@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/CA%2B8CBRjDbyR0CifTmyfxjYwOJT7q-JE3PsfABsf2Yb0D8Y969w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: django does not open html file properly

Like I said: setup an nginx docker and save the reports in its base folder. Then link there from your Django app. Save yourself trouble of zipping, downloading unzipping and manually opening the reports!

qop <simone.bittu@gmail.com> schrieb am Mo. 30. Apr. 2018 um 16:07:
You are right, it's too complicated.
I could zip gephi's graphics and make them downloadable on my site, how could i do that?
How can i create a "download button" that allows the user to download my zip files?

Il giorno venerdì 27 aprile 2018 23:24:43 UTC+2, Andy ha scritto:
It looks as if you see all contents of you index.html while also missing all dependencies .. check the network tab of your browser to confirm this.
The report created by gephi is probably an html page that is soppused to be opened via the browser directly or served with a webserver. Just rendering the page through Django wont fix included styles sheets of needed javascript tags.

You should setup a docker nginx, mount your report into its html root folder and link there from your django app.
What you are trying to do sounds to complicated. Dont try to push the reports through Django. You might rather build a catalogue listing all the reports, but for actually showing them, use an nginx docker.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/aWDr0VYIj-4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@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/265f121b-d7e2-4517-a6d9-199ca7ed6d4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Mit besten Grüßen
Andy

--
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+unsubscribe@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/CA%2B8CBRiw43ZVuVL1orA74wop6_9d9_TF0ABRdR4aEiP2y4NZhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.