from http://127.0.0.1 to domain name

4 views
Skip to first unread message

git trac

unread,
Oct 2, 2009, 9:51:55 AM10/2/09
to Agilito development

What should I change in order to run the Agilito service on a domain
name rather than on a local base?

thank you.

Emiliano Heyns

unread,
Oct 2, 2009, 11:46:50 AM10/2/09
to Agilito development
On Oct 2, 3:51 pm, git trac <gitt...@gmail.com> wrote:
> What should I change in order to run the Agilito service on a domain
> name rather than on a local base?

If you're running using manage.py, just type "manage.py runserver <ip
address>". But I wouldn't recommend running django apps using the
embedded (development) server. If you want to run django from apache
using mod_python, here's my current setup (replace the UPPERCASE
bits):

<VirtualHost *>
ServerName YOURDOMAIN.COM
DocumentRoot AGILITOPROJECTDIR
<Location />
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE settings
PythonPath "['AGILITOPROJECTDIR'] + sys.path"
</Location>
Alias /media/ /usr/share/python-support/python-django/django/
contrib/admin/media/
<Location /media/>
SetHandler none
</Location>
Alias /agilito/ AGILITOPROJECTDIR/agilito/media/
<location /agilito/>
SetHandler none
</Location>
</VirtualHost>

git trac

unread,
Oct 3, 2009, 3:27:00 AM10/3/09
to Agilito development
Wonder what "DJANGO_SETTINGS_MODULE" is...
the settings.py under AGILITOPROJECT_DIR ?
SetEnv AGILITOPROJECT_DIR/settings.py settings

we also need to change the content of the settings.py yes?

Thank you.

Emiliano Heyns

unread,
Oct 3, 2009, 9:19:10 AM10/3/09
to Agilito development
On Oct 3, 9:27 am, git trac <gitt...@gmail.com> wrote:
> Wonder what "DJANGO_SETTINGS_MODULE" is...
> the settings.py under AGILITOPROJECT_DIR ?
> SetEnv AGILITOPROJECT_DIR/settings.py  settings

Sorry, that was the one ALLCAPS setting that musn't be changed. I've
checked in a new installer, which you can download at
http://agilito.googlecode.com/svn/trunk/agilito/install.py ; paste it
over the install.py that is already in your agilito directory (or
issue an 'svn update' in that directory, which will do the same), and
re-run the installer. At the end it will spit out an template for your
apache setup with the variables filled in.

> we also need to change the content of the settings.py yes?

Yes, the installer mentions the required changes. If it doesn't,
please report back so I can fix the installer.

Regards,
Emile

git trac

unread,
Oct 4, 2009, 4:44:16 AM10/4/09
to Agilito development

*It works fine for the previous version after the django installed.
Did not (venture ) into trying your version of install.py.
The current version of Django I used was installed by someone else. I
did try once but got the following error message
~~~~~~~~~~~~

Traceback (most recent call last):
File "./install.py", line 195, in <module>
if not SVN('agilito', url = 'http://agilito.googlecode.com/svn/
trunk/agilito').verify():
File "./install.py", line 79, in verify
__import__(self.name)
File "/home/user/agilito-env/agilitoproject/agilito/__init__.py",
line 69, in <module>
PRINTABLE_CARDS = PrintableCards(settings.PRINTABLE_CARD_STOCK)
AttributeError: 'module' object has no attribute
'PRINTABLE_CARD_STOCK'

~~~~~~~~~~~~~~~~

Any quick fix for this? or what went wrong.


*We are not supposed to touch anything that is in 'fixtures' such as
burndown.json right?
I did try to test what happen when I changed domain into the real
domain name.
(a crazy hack.)


*If we don't install matplotlib, would we still get the chart for
progress? (where would it be, if it exists.)

*trying to finger out a better way to integrate agilito with trac. Any
suggestion ?


Thanks. This is a cool project.



On Oct 3, 9:19 pm, Emiliano Heyns <emiliano.he...@gmail.com> wrote:
> On Oct 3, 9:27 am, git trac <gitt...@gmail.com> wrote:
>
> > Wonder what "DJANGO_SETTINGS_MODULE" is...
> > the settings.py under AGILITOPROJECT_DIR ?
> > SetEnv AGILITOPROJECT_DIR/settings.py  settings
>
> Sorry, that was the one ALLCAPS setting that musn't be changed. I've
> checked in a new installer, which you can download athttp://agilito.googlecode.com/svn/trunk/agilito/install.py; paste it

Emiliano Heyns

unread,
Oct 4, 2009, 8:34:42 AM10/4/09
to Agilito development
On Oct 4, 10:44 am, git trac <gitt...@gmail.com> wrote:
> *It works fine for the previous version after the django installed.
> Did not (venture ) into trying your version of install.py.
> The current version of Django I used was installed by someone else. I
> did try once but got the following error message

The installer doesn't install django, it just checks it's present.

> ~~~~~~~~~~~~
>
> Traceback (most recent call last):
>   File "./install.py", line 195, in <module>
>     if not SVN('agilito', url = 'http://agilito.googlecode.com/svn/
> trunk/agilito').verify():
>   File "./install.py", line 79, in verify
>     __import__(self.name)
>   File "/home/user/agilito-env/agilitoproject/agilito/__init__.py",
> line 69, in <module>
>     PRINTABLE_CARDS = PrintableCards(settings.PRINTABLE_CARD_STOCK)
> AttributeError: 'module' object has no attribute
> 'PRINTABLE_CARD_STOCK'

Yeah, the new version of the installer will tell you to change this.
For now, just set PRINTABLE_CARD_STOCK to any string ('' will do) in
settings.py

> *We are not supposed to touch anything that is in 'fixtures' such as
> burndown.json  right?

Nope. these were present when I joined the project, I have no idea
what they're for really.

> I did try to test what happen when I changed domain into the real
> domain name.
> (a crazy hack.)

Not a hack, you can do that even if you run the embedded dev server (I
do that myself for remote testing when I ssh in for coding).

> *If we don't install matplotlib, would we still get the chart for
> progress? (where would it be, if it exists.)

Yes, you get the flash version, it'll be in the iteration tab. If you
have matplotlib you can choose between the static (faster) version and
the fancy flash version. If you have matplotlib you also get a bigger
printable version of the burndown chart. Agilito will autodetect
whether matplotlib is installed, so don't worry about it.

> *trying to finger out a better way to integrate agilito with trac. Any
> suggestion ?

What kind of integration would you be interested in?

For completeness, there's a trac-based scrum tool called agilo. I've
tried it and didn't like it, but it might suit your needs.

> Thanks. This is a cool project.

Thanks!
Emile
Reply all
Reply to author
Forward
0 new messages