Web page -form-update - not working

2020-04-18 Thread Body Abdo
Hi all; I have a problem when edit my form ... my page doesn't update models.py class Hard_number(models.Model): hard = ( ('SD1', 'SDD1'), ('SD2', 'SDD2'), ('SD3', 'SDD3'), ('SD4', 'SDD4'), ('SD5', 'SDD5'), ('SD6', 'SDD6'), ('SD7',

Test -Error :AssertionError: 404 != 200

2020-02-02 Thread Body Abdo
Dear all I can't do the test -error is self.assertEqual(response.status_code, 200) AssertionError: 404 != 200 My code is views.py class DetailPageView(DetailView): model = Series template_name='/var/www/project/tapelss/movies/archive/templates/archive/detail.html' urls.py app_name

Error in admin page- TemplateSyntaxError at /admin/login/

2020-01-08 Thread Body Abdo
Dear all , I've error when accesses in admin page : 'admin_static' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls cache django_ajax_tags i18n import_export_tags l10n log static tags tz -- You received this message because you are subscribed to the Google

I can't use DurationField

2018-01-02 Thread Body Abdo
I get error : ValueError: Enter a valid duration. When i'm importing excel file - i'm using postgresql my models.py An Series class - for describe series in the system """ id = models.CharField(max_length=20) program = models.CharField(max_length=100) tape = models.CharField(max_length=100)

I can't import views

2017-08-04 Thread Body Abdo
I'm trying to import view in my url in base project but i can't File "/var/www/project/venvs/lib64/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 978, in _gcd_import File "", line 961, in

how can i fix ImportError: No module named 'archive.settings'

2017-07-04 Thread Body Abdo
python manage.py runserver Traceback (most recent call last): File "manage.py", line 22, in execute_from_command_line(sys.argv) File "/var/www/project/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line utility.execute()