MeirKriheli / statirator

Multilingual static site and blog generator
MIT License
24 stars 2 forks source link

Unknown command: statirator init #12

Open vindarel opened 8 years ago

vindarel commented 8 years ago

Hi, First of all: congrats, this is an awesome and impressive project.

I installed statirator in a new venv (installing globally didn't work, it doesn't find html5writer), but "init" is an unknown command :/

So I looked at the django docs about custom commands (disclaimer:for the first time!) and I feel like statirator's project structure doesn't follow the doc. The doc states:

Django will register a manage.py command for each Python module in [the commands] directory

But =statirator/core/management/commands= is one module with 4 commands in it (init, serve, generate, copy_template). Is that right ? Just a thought :)

Another question then: why do we have test_settings.py in statirator but no settings.py ? Doesn't that prevent the app from finding the statirator.core and statirator.blog installed apps ?

Thanks

ps: I posted about statirator on reddit, but I'm sad it didn't get much attention :(

pps: it would be cool too if you completed your doc about a local install.

Hope you're still interested by your project…

and a final tought: if you write "frozen-django" somewhere I'm sure that will drive you more users (devs?), because frozen-flask is a quite popular app and I'm sure I'm not the only one who googled for a django equivalent.

vindarel commented 8 years ago

ps: statirator appeared on Pycoders' Weekly of nov, 27th, yeah

MeirKriheli commented 8 years ago

@vindarel Thank you :smile:

I use it mainly to generate my website and blog, but don't have too much time to work on it.

Can you provide the steps you did for the installation so we can try to debug the problem (and hopefully write better documentation) ?

vindarel commented 8 years ago

Hi MeirKrihell, glad you're still around here :)

1) I tried to install statirator globally

sudo pip install statirator [sudo] password for vince: Collecting statirator Using cached statirator-0.2.0.tar.gz Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages (from statirator) Requirement already satisfied (use --upgrade to upgrade): docutils in /usr/local/lib/python2.7/dist-packages (from statirator) Requirement already satisfied (use --upgrade to upgrade): Pygments in /usr/local/lib/python2.7/dist-packages (from statirator) Collecting html5writer (from statirator) Could not find a version that satisfies the requirement html5writer (from statirator) (from versions: ) No matching distribution found for html5writer (from statirator)

2) and in a venv

it installs statirator 0.2 correctly, but then:

$ statirator init 
Unknown command: 'init'
Type 'statirator help' for usage.

There's something I didn't try, it's to install it from source.

ps: pip version 7.1.2

MeirKriheli commented 8 years ago

Hmm, it didn't install for me in venv as well, failed on html5writer, guess I'll need to remove that, maybe use what's in docutils and leave it at that.