Skip to content

Commit 45a8f7a

Browse files
aaryanporwaldas-g
andauthored
Update en/deploy/README.md
Co-authored-by: Raphael Das Gupta <raphael.das.gupta@hsr.ch>
1 parent 92689ca commit 45a8f7a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

en/deploy/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ db.sqlite3
4848

4949
And save it as `.gitignore` in the "djangogirls" folder.
5050

51-
> **Note** The dot at the beginning of the file name is important! If you're having any difficulty creating it (Macs don't like you to create files that begin with a dot via the Finder, for example), then use the "Save As" feature in your editor; it's bulletproof. And be sure not to add `.txt`, `.py`, or any other extension to the file name -- it will only be recognized by Git if the name is just `.gitignore`. The `.gitignore` file is known as a 'dotfile' and you won't be able to see the file with normal `ls` command! Instead use `ls -a` to see the `.gitignore` file.
51+
> **Note** The dot at the beginning of the file name is important! If you're having any difficulty creating it (Macs don't like you to create files that begin with a dot via the Finder, for example), then use the "Save As" feature in your editor; it's bulletproof. And be sure not to add `.txt`, `.py`, or any other extension to the file name -- it will only be recognized by Git if the name is just `.gitignore`.
52+
Linux and MacOS treat files with a name that starts with `.` (such as `.gitignore`) as hidden
53+
and the normal `ls` command won't show these files.
54+
Instead use `ls -a` to see the `.gitignore` file.
5255

5356
> **Note** One of the files you specified in your `.gitignore` file is `db.sqlite3`. That file is your local database, where all of your users and posts are stored. We'll follow standard web programming practice, meaning that we'll use separate databases for your local testing site and your live website on PythonAnywhere. The PythonAnywhere database could be SQLite, like your development machine, but usually you will use one called MySQL which can deal with a lot more site visitors than SQLite. Either way, by ignoring your SQLite database for the GitHub copy, it means that all of the posts and superuser you created so far are going to only be available locally, and you'll have to create new ones on production. You should think of your local database as a good playground where you can test different things and not be afraid that you're going to delete your real posts from your blog.
5457

0 commit comments

Comments
 (0)