Giter Site home page Giter Site logo

Comments (8)

aericson avatar aericson commented on May 18, 2024

Add some example views and test them.

from django-react-boilerplate.

sichgeis avatar sichgeis commented on May 18, 2024

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.

sichgeis avatar sichgeis commented on May 18, 2024

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.

jhgv avatar jhgv commented on May 18, 2024

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.

sichgeis avatar sichgeis commented on May 18, 2024

@jhgv did you find any clous why the ci build is broken?

from django-react-boilerplate.

jhgv avatar jhgv commented on May 18, 2024

@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.

sichgeis avatar sichgeis commented on May 18, 2024

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.

fjsj avatar fjsj commented on May 18, 2024

Django example app is minimal now, so closing this.

from django-react-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.