-
Notifications
You must be signed in to change notification settings - Fork 38
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
rename project_root
to site_aspen
#438
Comments
|
What is the problem that needs to be solved? That simplate in |
|
Haven't we deprecated |
In Google App Engine app configuration is handled by root level |
My understanding is that we are removing the magic from aspen import Website
from my_app import wireup()
website = Website()
wireup(website) See gratipay/gratipay.com#3151 for a fuller example. |
Right, but being able to just run Without some convention, how will |
For simple cases, the answer is
Yup. Write your own! :-) from aspen.website import Website
website = Website([])
if __name__ == '__main__':
from wsgiref.simple_server import make_server
make_server('', 8000, website).serve_forever() |
How about |
I only don't understand how a |
Here's the code behind |
I see. So, we need some convention how |
There is no |
Well, running |
|
Let's stay on topic: should we rename |
We're not going to go back to magic directory names. The answer here is an environment variable:
@techtonik Do you mean that I can't
+1 |
|
🚲 🏠 |
So what? Then the website is just a subproject, and
I don't see that this relates.
I don't know how to make sense of this in the present context. |
Okay, you've convinced me that I should instead just be 👎 on this. So, that. |
WTF The
I see that it is where Aspen looks for its files, and that's why there is a lot of garbage in Gratipay's root. =)
Let me remind you that the current way to run inside.gratipay.com is |
Then I'm not sure what you mean by "magic name". What I mean by magic name is that
Not that I recall.
That's a function of Aspen's tiny market share, a problem that renaming to
Here is the Gratipay root:
Here are the files that
In other words, Aspen is only responsible for a couple error simplates (and we already have a ticket to make their location configurable: #141). Yes, the Gratipay root could be cleaned up. No, Aspen is not to blame for the mess.
No it's not, it's |
@techtonik Now we might be getting somewhere. If I hear you right, you're saying that if you look at I still don't buy it, sorry. :-) Honestly I think we just need to bring Aspen as a library up to snuff with Postgres.py, etc., in terms of documentation and API design. Maybe |
"magic name" is the name of variable with a very low change of correct guess about its true meaning.
This is called |
Ah. Whatever. You won't understand me. It is a waste of time. |
Just a hint. I am using windows without GCC, Makefiles and all that stuff that make Linux users happy. Right now I also debug all this on remote container, where is no debugger or IDE. |
I also don't see why not to use Flask + simplates. What is the role of Aspen? How does it compare to Flask and Djangi? |
I'm sorry Aspen sucks right now. :-( |
It suxx only because it is not properly explained.. Looks like NIH with no clear rationale. |
Per @techtonik :
Rename
project_root
tosite_aspen
(stolen that convention from SCons - it is also "placed on sys.path during startup). The problem withproject_root
that it is not a root of a project (like Gratipay) - it is a site-specific dir for Aspen configuration. The project may consist of many things, and web site might only be a minor. Also it is a good practice to keep root of the project checkout tidy for newcomers. Having sane defaults also help to avoid learning lengthy command lines. By default aspen could look forsite_aspen
in current dir (like SCons) and try to loadwww
as default too, so that you could just invoke 'aspen' for development, without environment, foreman, Makefiles and all that complication. In addition,project_root
is not searchable, butsite_aspen
is.The text was updated successfully, but these errors were encountered: