Raniac / django_demo

A simple to-do list, refering to Test-Driven Development with Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django_demo

Refer to this site for the instructions to build a django environment.

Set up the django and selenium environment according to Test-Driven Development with Python. If encountered an error like below,

File "/home/bennyray/Projects/django_demo/env/lib/python3.7/site-packages/django/contrib/admin/widgets.py", line 152
    '%s=%s' % (k, v) for k, v in params.items(),
    ^
SyntaxError: Generator expression must be parenthesized

refer to this site for solution, basically just open the mentioned file and remove the comma at the end of line 152.

Make sure to look into netstat commands.

To empty the git repository, use the command,

$ rm -rf .git
$ git init .

Apps are a good way to keep code organized, started by,

$ python manage.py startapp web

consists of a number of placeholder files for things like models, views, and tests.

Before doing any refactoring, always do a commit.

To let Git notice that some files are moved, use git mv command.

If something strange is going on with the FT's, it's always worth trying to upgrade Selenium.

About

A simple to-do list, refering to Test-Driven Development with Python.


Languages

Language:Python 94.3%Language:HTML 5.7%