Fresh install on postgres throws "No Shop matches the given query."

Simone Orsi avatarSimone Orsi created an issue

Hi, following http://packages.python.org/django-lfs/introduction/installation.html I created a fresh install of lfs running on a postgres db.

What's weird is that when you first try to access http://localhost:8000/manage you get a "No Shop matches the given query."... of course! I just created you! :)

I tested with sqlite and it works smoothly so I think there's something wrong w/ postgres startup sql.

Is there any workaround for this (aside fill in by hand some data table by table)? Any ready-to-use shop skeleton?

Cheers, SimO

Comments (10)

  1. Simone Orsi

    Hi Kai, thanks for the answer.

    It seems I found another problem. A buildout-related problem: I do not have any "parts" called lfs! :) (A couple of day ago I tried the BO from "http://code.google.com/p/django-lfs/wiki/InstallationBuildoutQuickstart" which didn't work but it had a part called "lfs")

    That command did nothing BUT it should tell me "can't find this path" or whatever... instead of doing nothing at all. However I tried:

    $ bin/django loaddata eggs/django_lfs-0.2.3-py2.6.egg/lfs/core/fixtures/lfs_initial.xml

    and it worked with the following output:

    Installing xml fixture 'eggs/django_lfs-0.2.3-py2.6.egg/lfs/core/fixtures/lfs_initial' from absolute path. Installed 9 object(s) from 1 fixture(s)

    And know I can login! :)

    Attached you find my current BO (the only thing I changed is sqlite3/psycopg2 in eggs section)

    Should I file an issue for this BO?

  2. Simone Orsi

    Sorry, I didn't explained myself clearly :)

    I wanted to say "1st I tried the code from google but it didn't work at all"

    Today I followed http://packages.python.org/django-lfs/introduction/installation.html and I got the error I reported that fortunately was fixed with your hint ;)

    So, my answer is this:

    http://packages.python.org/django-lfs/introduction/installation.html

    works smoothly BUT you have to launch:

    "bin/django loaddata path/to/your/eggs/django_lfs-xxx/lfs/core/fixtures/lfs_initial.xml"

    in order to syncdb.

    Thanks a lot for your help!

  3. Anonymous

    Hi, I did it. It's here http://bitbucket.org/simahawk/django-lfs/ I tried to make "pull request" but it bounces me outside and nothing seems to happen except that I have to login again :)

    I'm sorry I'm used to launchpad but I'm new to bitbucket and probably I'm doing something wrong :/ I promise I'll study deeeeply how it works :)

  4. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.