Comments (8)
Add some example views and test them.
from django-react-boilerplate.
Prezadxs,
I would like to contribute to this project and have found this issue to be interesting task.
I have created a pull request #434 where the example app is extended with models, views and tests (!). The added views follow the offical Django 2.2 tutorial: https://docs.djangoproject.com/en/2.2/intro/tutorial01/.
As this issue is already a little old, I hope that the change is still relevant.
Best regards e abraços
from django-react-boilerplate.
Unfortunatly the circleci build is erroring out with:
FileNotFoundError: [Errno 2] No such file or directory: '/home/circleci/django-react-boilerplate/testproject/backend/../webpack-stats.json'
I could not locate the error in the ci build. Any help?
from django-react-boilerplate.
Hi @hansdereber,
It doesn't seem to be related to your PR. I will take a look and get back to you with more information as soon as possible.
from django-react-boilerplate.
@jhgv did you find any clous why the ci build is broken?
from django-react-boilerplate.
@hansdereber
Try replacing STATIC_ROOT, STATIC_URL, MEDIA_ROOT, and MEDIA_URL in settings.test with:
STATIC_ROOT = "staticfiles"
STATIC_URL = "/static/"
MEDIA_ROOT = "mediafiles"
MEDIA_URL = "/media/"
from django-react-boilerplate.
The tests were failing because they depended on the webpack build. So I needed to change the circle ci config.yaml file. I have reordered the config.yaml file. It now builds and tests the frontend first, then it builds and tests the backend. Now the ci build is green with all 10 tests passing.
from django-react-boilerplate.
Django example app is minimal now, so closing this.
from django-react-boilerplate.
Related Issues (20)
- Bug; Error Deploying to Heroku During Installing dependencies error arises HOT 2
- Install pywatchman for local server
- Remove unnecessary layer for the frontend Dockerfile
- how to run this on dev mode? HOT 1
- db.sqlite issue: makemigrations failed HOT 2
- Add guide to create DB of sqlite3 and postgrel in readme HOT 1
- Failed at the [email protected] postinstall script. HOT 1
- Test Render.com build on CI
- Transform the repository to a template repository HOT 1
- Select a reliable frontend framework for this project HOT 3
- Running make docker_setup returns error with current version of docker-compose.yaml HOT 2
- "make docker_makemigrations" not working. HOT 7
- Apply recommended Celery settings
- Replace most linters with ruff
- Use django-anymail
- Consider migrating Prettier and ESLint to Biome
- `make docker_up` is throwing `external volume "<project_name>_dbdata" not found` HOT 1
- Add pytest-hot-reloading
- Add django-upgrade to pre-commit
- Request for creating documentation for using virualenv. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-react-boilerplate.