Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
swp-unisport
team-warumkeinrust
Backend
Commits
59159dbb
Commit
59159dbb
authored
3 years ago
by
fu2662cw
Browse files
Options
Downloads
Patches
Plain Diff
Add instructions to readme on how to load fixtures
parent
402d3d28
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+13
-0
13 additions, 0 deletions
README.md
with
13 additions
and
0 deletions
README.md
+
13
−
0
View file @
59159dbb
...
@@ -70,3 +70,16 @@ python manage.py runserver
...
@@ -70,3 +70,16 @@ python manage.py runserver
```
```
If successful, you can now see the running server in your browser at
`http://127.0.0.1:8000`
.
If successful, you can now see the running server in your browser at
`http://127.0.0.1:8000`
.
## Populate the database with test data
The json-Files in quiz/fixtures define some test data. To load the test data into your database run
```
python manage.py loaddata quiz/fixtures/*.json
```
This will replace all your database content with the content defined in the fixtures.
## Use the django admin interface to view and edit data during development
If you started the server as described above, you can access the django admin interface on
[
localhost:8000/admin
](
localhost:8000/admin
)
.
If you loaded the data from the fixtures you can login with username: "admin" and password: "password"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment