Comments (3)
Hello @flacoman91, this is really strange. Have you added categories and subcategories through the django-admin? Here's what I did right now (and everything worked ok):
I use the latest version from master (I have activated a virtualenv first):
git fetch origin
git merge origin/master
then I install all deps for python and js
npm install
pip install -r requirements.txt
then create a new database and a superuser
del db.sqlite3
python manage.py migrate
python manage.py createsuperuser
Then run the python dev server
python manage.py runserver
and from a different command line I run
npm run watch
to start watchify so it compiles my JS assets.
Now I visit http://127.0.0.1:8000/admin, login with my superuser credentials and add a bunch of categories and subcategories. Maybe you forgot to do that? From what I see, the initial-simpler versions (for example react-only) were using hard-coded categories (https://github.com/spapas/react-tutorial/blob/react-only/books/models.py) so you didn't need to visit the django-admin to add them yourself.
Finally, I can go to http://127.0.0.1:8000/ and everything is working fine. Can you try it again? Do you see any errors in your javascript console or in command line?
from react-tutorial.
So sorry about that. I'm just learning react and have never used django.
I didn't know I had to create a user and populate the data manually.
That was the steps that I was missing.
Awesome tutorial and thank you very much for sharing this!
from react-tutorial.
No problem I should have mentioned that in the readme. I totally recommend django, in my opinion it's the best server side framework today.
from react-tutorial.
Related Issues (5)
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 react-tutorial.