Plugging in Require.js

2015-09-09 Thread Christos Jonathan Seth Hayward
I asked how to plug in Require.js at:

http://stackoverflow.com/questions/32483810/how-do-i-think-and-act-in-require-js-if-i-have-a-script-src-background-a

​What should I be doing, and what packages should I be using, to be able to
use Require.js?


Thanks,​


-- 
[image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/>
Christos Jonathan Seth Hayward, an Orthodox Christian author.

Amazon / Kindle <http://amazon.com/author/cjshayward> • *Author
<http://cjshayward.com/>* • Author Bio <http://jonathanscorner.com/author/>
 • *The Classic Orthodox Bible <http://classicorthodoxbible.com/>* • *Email
* • Facebook
<http://www.facebook.com/christos.jonathan.hayward> • Fan Page
<http://fan.cjshayward.com/>• Github
<https://github.com/JonathanHayward?tab=repositories> • Google Plus
<http://jonathanscorner.com/plus> • LinkedIn
<http://www.linkedin.com/in/jonathanhayward> • *Main Website
<http://jonathanscorner.com/>* • *Professional
<http://jonathanhayward.com/>* • Twitter
<http://twitter.com/JonathansCorner> • What's New?
<http://jonathanscorner.com/>

If you read just *one* of my books, you'll want *The Best of Jonathan's
Corner <http://tinyurl.com/best-of-jonathans-corner>* (Kindle
<http://tinyurl.com/best-jonathans-corner-kindle>).

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE6_B5R0UoJq%2BsC-pLY6zbTi3m99F_eaFnuaf3c9gAxb9nT%3DNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


django-ckeditor noop?

2014-12-05 Thread Christos Jonathan Seth Hayward
At
http://stackoverflow.com/questions/27321396/how-can-i-get-my-django-ckeditor-installation-to-recognize
I asked what I could do to get a RichTextField() to be displayed with a
CKeditor widget.

Any advice for what I should change?


Thanks,

-- 
[image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/>
Christos Jonathan Seth Hayward, an Orthodox Christian author.

Amazon / Kindle <http://amazon.com/author/cjshayward> • *Author
<http://cjshayward.com/>* • Author Bio <http://jonathanscorner.com/author/>
 • *The Classic Orthodox Bible <http://classicorthodoxbible.com/>* • *Email
* • Facebook
<http://www.facebook.com/christos.jonathan.hayward> • Fan Page
<http://fan.cjshayward.com/>• Github
<https://github.com/JonathanHayward?tab=repositories> • Google Plus
<http://jonathanscorner.com/plus> • LinkedIn
<http://www.linkedin.com/in/jonathanhayward> • *Main Website
<http://jonathanscorner.com/>* • *Professional
<http://jonathanhayward.com/>* • Twitter
<http://twitter.com/JonathansCorner> • What's New?
<http://jonathanscorner.com/>

If you read just *one* of my books, you'll want *The Best of Jonathan's
Corner <http://tinyurl.com/best-of-jonathans-corner>* (Kindle
<http://tinyurl.com/best-jonathans-corner-kindle>).

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE6_B5T8oq52FQ1zstfERksPrgMye7RL4GA1eEqy1LNpAioPXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I supply an appropriate application.wsgi to Gunicorn?

2014-11-24 Thread Christos Jonathan Seth Hayward
And with that, I'm off and running!

Thank you for your help.

On Mon, Nov 24, 2014 at 4:05 PM, Carl Meyer  wrote:

> On 11/24/2014 03:00 PM, Carl Meyer wrote:
> > On 11/24/2014 02:56 PM, Christos Jonathan Seth Hayward wrote:
> >> Thanks so much!
> >>
> >> Could you confirm the invocation?
> >>
> >> cjsh@ps306627:~/cynthia$ gunicorn cynthia.wsgi 0.0.0.0:
> >>
> >> usage: gunicorn [OPTIONS] [APP_MODULE]
> >>
> >> gunicorn: error: No application module specified.
> >
> > That's the right invocation, but you need your python path set up to
> > include the directory that has `manage.py` in it (when you actually run
> > a `manage.py` command, this happens automatically, but not when you run
> > gunicorn).
> >
> > There are a variety of ways that can be done, the simplest is to run
> > your gunicorn command from the same directory that contains `manage.py`
> > and set the PYTHONPATH env var:
> >
> > PYTHONPATH=`pwd` gunicorn cynthia.wsgi 0.0.0.0:
>
> Sorry, I was focused on the Python issues, didn't notice that you're
> trying to pass a bind address without using the `-b` option. This is
> what you want:
>
> PYTHONPATH=`pwd` gunicorn -b 0.0.0.0: cynthia.wsgi
>
> Carl
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5473AB99.8040101%40oddbird.net
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
[image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/>
Christos Jonathan Seth Hayward, an Orthodox Christian author.

Amazon / Kindle <http://amazon.com/author/cjshayward> • *Author
<http://cjshayward.com/>* • Author Bio <http://jonathanscorner.com/author/>
 • *The Classic Orthodox Bible <http://classicorthodoxbible.com/>* • *Email
* • Facebook
<http://www.facebook.com/christos.jonathan.hayward> • Fan Page
<http://fan.cjshayward.com/>• Github
<https://github.com/JonathanHayward?tab=repositories> • Google Plus
<http://jonathanscorner.com/plus> • LinkedIn
<http://www.linkedin.com/in/jonathanhayward> • *Main Website
<http://jonathanscorner.com/>* • *Professional
<http://jonathanhayward.com/>* • Twitter
<http://twitter.com/JonathansCorner> • What's New?
<http://jonathanscorner.com/>

If you read just *one* of my books, you'll want *The Best of Jonathan's
Corner <http://tinyurl.com/best-of-jonathans-corner>* (Kindle
<http://tinyurl.com/best-jonathans-corner-kindle>).

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE6_B5QMBGstoZJeVaEKN0ZuXevVS8t4Mdwk_1cbK%2B%2BTTr%2BvgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I supply an appropriate application.wsgi to Gunicorn?

2014-11-24 Thread Christos Jonathan Seth Hayward
Thanks so much!

Could you confirm the invocation?

cjsh@ps306627:~/cynthia$ gunicorn cynthia.wsgi 0.0.0.0:

usage: gunicorn [OPTIONS] [APP_MODULE]

gunicorn: error: No application module specified.

cjsh@ps306627:~/cynthia$ gunicorn cynthia.wsgi:application 0.0.0.0:

usage: gunicorn [OPTIONS] [APP_MODULE]

gunicorn: error: No application module specified.

cjsh@ps306627:~/cynthia$ gunicorn cynthia.wsgi:cynthia 0.0.0.0:

usage: gunicorn [OPTIONS] [APP_MODULE]

gunicorn: error: No application module specified.


On Mon, Nov 24, 2014 at 3:45 PM, Carl Meyer  wrote:

>
>
> On 11/24/2014 02:38 PM, Christos Jonathan Seth Hayward wrote:
> > Ok; wonder if I should upgrade Django.
> >
> > I just ran a startproject earlier today (I can re-create it; I was just
> > trying to get it running and see the start page in my browser before
> going
> > further).
> >
> > cjsh@ps306627:~/cynthia$ find . -name \*.wsgi
>
> Your Django version is fine. The problem is that you're expecting to
> find a file with the `.wsgi` extension. The file Django generates is
> called `myproject/wsgi.py`, thus its dotted Python import path (which is
> what you pass to gunicorn) is `myproject.wsgi`.
>
> Carl
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5473A6EF.4090107%40oddbird.net
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
[image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/>
Christos Jonathan Seth Hayward, an Orthodox Christian author.

Amazon / Kindle <http://amazon.com/author/cjshayward> • *Author
<http://cjshayward.com/>* • Author Bio <http://jonathanscorner.com/author/>
 • *The Classic Orthodox Bible <http://classicorthodoxbible.com/>* • *Email
* • Facebook
<http://www.facebook.com/christos.jonathan.hayward> • Fan Page
<http://fan.cjshayward.com/>• Github
<https://github.com/JonathanHayward?tab=repositories> • Google Plus
<http://jonathanscorner.com/plus> • LinkedIn
<http://www.linkedin.com/in/jonathanhayward> • *Main Website
<http://jonathanscorner.com/>* • *Professional
<http://jonathanhayward.com/>* • Twitter
<http://twitter.com/JonathansCorner> • What's New?
<http://jonathanscorner.com/>

If you read just *one* of my books, you'll want *The Best of Jonathan's
Corner <http://tinyurl.com/best-of-jonathans-corner>* (Kindle
<http://tinyurl.com/best-jonathans-corner-kindle>).

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE6_B5RrTBV5NB8cROvV%3D%2B_owyVDtfZrTAwvmSLrXd3hCXfMkw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I supply an appropriate application.wsgi to Gunicorn?

2014-11-24 Thread Christos Jonathan Seth Hayward
Ok; wonder if I should upgrade Django.

I just ran a startproject earlier today (I can re-create it; I was just
trying to get it running and see the start page in my browser before going
further).

cjsh@ps306627:~/cynthia$ find . -name \*.wsgi

cjsh@ps306627:~/cynthia$ python manage.py shell

Python 2.6.6 (r266:84292, Aug 12 2014, 07:57:07)

[GCC 4.4.5] on linux2

Type "help", "copyright", "credits" or "license" for more information.

(InteractiveConsole)

>>> import django

>>> dir(django)

['VERSION', '__builtins__', '__doc__', '__file__', '__name__',
'__package__', '__path__', 'conf', 'contrib', 'core', 'db', 'dispatch',
'forms', 'get_version', 'http', 'middleware', 'shortcuts', 'template',
'templatetags', 'test', 'utils', 'views']

>>> django.VERSION

(1, 6, 5, 'final', 0)

>>>

​Further suggestions?


Thanks,

On Mon, Nov 24, 2014 at 3:24 PM, Carl Meyer  wrote:

> Hi,
>
> On 11/24/2014 02:19 PM, Christos Jonathan Seth Hayward wrote:
> > From
> >
> http://stackoverflow.com/questions/27113466/how-can-i-deploy-django-gunicorn-under-apache-proxy
> > :
> >
> > 've run through the documentation and am hitting the same pages over and
> > over again. At present I've found documentation to run off an existing
> > myapp.wsgi file, but documentation for how to make an appropriate wsgi
> file
> > is a little harder to find.
> >
> > If I want to make, proxied by Apache, the equivalent of, on an older
> > version of Gunicorn etc.:
> >
> > python manage.py run_gunicorn 0.0.0.0:
> >
> > what should I be doing to supply a WSGI file for:
> >
> > gunicorn project.wsgi:application
>
> That depends a bit on your version of Django. For any Django version
> since 1.4, 'django-admin.py startproject' should generate a wsgi.py file
> in your project. If your project doesn't have one, you can run
> 'startproject' to quickly see what one should look like and copy it into
> your project.
>
> Carl
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5473A21F.8050801%40oddbird.net
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
[image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/>
Christos Jonathan Seth Hayward, an Orthodox Christian author.

Amazon / Kindle <http://amazon.com/author/cjshayward> • *Author
<http://cjshayward.com/>* • Author Bio <http://jonathanscorner.com/author/>
 • *The Classic Orthodox Bible <http://classicorthodoxbible.com/>* • *Email
* • Facebook
<http://www.facebook.com/christos.jonathan.hayward> • Fan Page
<http://fan.cjshayward.com/>• Github
<https://github.com/JonathanHayward?tab=repositories> • Google Plus
<http://jonathanscorner.com/plus> • LinkedIn
<http://www.linkedin.com/in/jonathanhayward> • *Main Website
<http://jonathanscorner.com/>* • *Professional
<http://jonathanhayward.com/>* • Twitter
<http://twitter.com/JonathansCorner> • What's New?
<http://jonathanscorner.com/>

If you read just *one* of my books, you'll want *The Best of Jonathan's
Corner <http://tinyurl.com/best-of-jonathans-corner>* (Kindle
<http://tinyurl.com/best-jonathans-corner-kindle>).

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE6_B5RwmAdAmotBkmmARKZAED%3DKZyjeUk4a_Xz%3Dux%3DbA0d%2BiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How do I supply an appropriate application.wsgi to Gunicorn?

2014-11-24 Thread Christos Jonathan Seth Hayward
From
http://stackoverflow.com/questions/27113466/how-can-i-deploy-django-gunicorn-under-apache-proxy
:

've run through the documentation and am hitting the same pages over and
over again. At present I've found documentation to run off an existing
myapp.wsgi file, but documentation for how to make an appropriate wsgi file
is a little harder to find.

If I want to make, proxied by Apache, the equivalent of, on an older
version of Gunicorn etc.:

python manage.py run_gunicorn 0.0.0.0:

what should I be doing to supply a WSGI file for:

gunicorn project.wsgi:application

Thanks,
-- 
[image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/>
Christos Jonathan Seth Hayward, an Orthodox Christian author.

Amazon / Kindle <http://amazon.com/author/cjshayward> • *Author
<http://cjshayward.com/>* • Author Bio <http://jonathanscorner.com/author/>
 • *The Classic Orthodox Bible <http://classicorthodoxbible.com/>* • *Email
* • Facebook
<http://www.facebook.com/christos.jonathan.hayward> • Fan Page
<http://fan.cjshayward.com/>• Github
<https://github.com/JonathanHayward?tab=repositories> • Google Plus
<http://jonathanscorner.com/plus> • LinkedIn
<http://www.linkedin.com/in/jonathanhayward> • *Main Website
<http://jonathanscorner.com/>* • *Professional
<http://jonathanhayward.com/>* • Twitter
<http://twitter.com/JonathansCorner> • What's New?
<http://jonathanscorner.com/>

If you read just *one* of my books, you'll want *The Best of Jonathan's
Corner <http://tinyurl.com/best-of-jonathans-corner>* (Kindle
<http://tinyurl.com/best-jonathans-corner-kindle>).

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE6_B5SUNHzCEjoC%3D7y9tqWq-m%3DSWkYayqaQ6PNqy9BdXVqOAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How can I set up Debian x86_64 so a Django project sees django.contrib.staticfiles?

2014-04-23 Thread Christos Jonathan Seth Hayward
I have a new Debian VPS, and a Django project that I am trying to deploy is
not seeing django.contrib.staticfiles.*. Doing a "pip install
django-staticfiles" has not observably changed things.

What is the best way to have things running well enough that such Django
projects will run?

Thanks,


-- 
[image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/>
Christos Jonathan Seth Hayward, an Orthodox Christian author.

Amazon / Kindle <http://amazon.com/author/cjshayward> • *Author
<http://cjshayward.com/>* • Author Bio <http://jonathanscorner.com/author/>
 • *Email * •
Facebook<http://www.facebook.com/christos.jonathan.hayward>
 • Fan Page <http://fan.cjshayward.com/> • Google
Plus<http://jonathanscorner.com/plus>
 • LinkedIn <http://www.linkedin.com/in/jonathanhayward> • *Professional
<http://jonathanhayward.com/>* • Twitter<http://twitter.com/JonathansCorner>
 • *Web <http://jonathanscorner.com/>* • What's
New?<http://jonathanscorner.com/>
If you read just *one* of my books, you'll want *The Best of Jonathan's
Corner <http://www.amazon.com/dp/1478219912>*.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE6_B5SMaj3tbjbz5-JKMkhZJ%3DGLYE1-RpkxAENKVRmx_fVwZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.