Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing test data in neo4j db? #126

Open
hszcg opened this issue Dec 3, 2013 · 3 comments
Open

Missing test data in neo4j db? #126

hszcg opened this issue Dec 3, 2013 · 3 comments

Comments

@hszcg
Copy link

hszcg commented Dec 3, 2013

Hi, guys,
I am just wondering whether there is any test data provided in this repo.
I thought i have already setup both frontend and backend ready, but there is no data in neo4j db.

Did i missed anything?
Meanwhile, is there any way to import some test into neo4j db easily?

Thanks a lot.

@pirhoo
Copy link
Collaborator

pirhoo commented Dec 3, 2013

Hi @hszcg,

No sample data yet, sorry; we are still working on refactoring the project to isolate every apps including their data.
Energy is the first app, that we call now "a topic".

About importing data to neo4j, the default command line tool from Django is not working correctly with Neo4django so we built our own command line tool: python ./manage.py loadnodes

$ python ./manage.py loadnodes --help
Usage: ./manage.py loadnodes [options] filename.json

Parse the given JSON file to insert the data into database.

Options:
  -v VERBOSITY, --verbosity=VERBOSITY
                        Verbosity level; 0=minimal output, 1=normal output,
                        2=verbose output, 3=very verbose output
  --settings=SETTINGS   The Python path to a settings module, e.g.
                        "myproject.settings.main". If this isn't provided, the
                        DJANGO_SETTINGS_MODULE environment variable will be
                        used.
  --pythonpath=PYTHONPATH
                        A directory to add to the Python path, e.g.
                        "/home/djangoprojects/myproject".
  --traceback           Print traceback on exception
  --version             show program's version number and exit
  -h, --help            show this help message and exit

Very best,
Pierre

@hszcg
Copy link
Author

hszcg commented Dec 4, 2013

@pirhoo
Copy link
Collaborator

pirhoo commented Dec 4, 2013

Yes, it is !

@smkraus smkraus added this to the Documentation and compatibility milestone Jun 5, 2014
@smkraus smkraus removed this from the Documentation and compatibility milestone Aug 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants