Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*Geek Talk & Media
setting up a local dndtools mirror
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Isiloki" data-source="post: 6450961" data-attributes="member: 6786372"><p>Happy to see you progressed!</p><p>On my side, I've managed to get a full mirror of the website working.</p><p>Can help you with the steps I did (the versions are really important, there are some breaking changes in the newer versions)</p><p>Assuming you have python 2.6 installed</p><p>[CODE]</p><p>- wget [URL]https://bootstrap.pypa.io/ez_setup.py[/URL] -O - | python</p><p></p><p>- easy_install pip</p><p></p><p>- pip install Django==1.2.7</p><p></p><p>- easy_install South</p><p></p><p>- easy_install django-pagination</p><p></p><p>- easy_install django-debug-toolbar</p><p></p><p></p><p>- apt-get install python-dev</p><p></p><p>- pip install textile</p><p></p><p>- easy_install recaptcha-client</p><p></p><p>- apt-get install python-imaging</p><p></p><p>- apt-get install git</p><p></p><p>- apt-get install mysql-server mysql-client (avec mdp)</p><p></p><p>- apt-get install python-mysqldb</p><p></p><p>- git clone [URL]https://github.com/django-debug-toolbar/django-debug-toolbar.git[/URL]</p><p></p><p>- cd django-debug-toolbar</p><p>- git checkout tags/0.8.4</p><p></p><p>- python setup.py build / install</p><p></p><p>- git clone [URL]https://github.com/etianen/django-reversion.git[/URL]</p><p></p><p>- cd django-reversion</p><p></p><p>- git checkout tags/release-1.3.3</p><p></p><p>- python setup.py build / install</p><p></p><p>- cd ..</p><p></p><p>- mysql -u root -p</p><p></p><p>> create database dndtools;</p><p></p><p>> exit;</p><p></p><p>- wget bit.ly/XYFJdV</p><p></p><p>- apt-get install p7zip</p><p></p><p>- 7za e XYFJdV</p><p></p><p>- mysql -u root -p -h localhost dndtools < dndtools_prod_backup_2013_03_02_clear_accounts_no_reversions.sql (or whatever you script SQL is)</p><p></p><p>- git clone [URL]https://github.com/dndtools/dndtools.git[/URL]</p><p></p><p>- cd dndtools/dndtools</p><p></p><p>cp local.py.sample local.py</p><p></p><p>- nano local.py (modify these 3 lines):</p><p></p><p>> Name : dndtools</p><p></p><p>> User : root</p><p></p><p>> Password</p><p></p><p>- python manage.py runserver (and use apt-get to install the missing component)</p><p></p><p>once the server is running, stop it and do</p><p># python manage.py shell</p><p>And that where you are missing the ultimate command line</p><p>>>> [COLOR=#ff0000]from django.contrib.auth.models import User[/COLOR]</p><p>>>> users = User.objects.all()</p><p></p><p>>>> user = users[0]</p><p></p><p>>>> user.set_password('dndtools')</p><p></p><p>>>> user.save()</p><p></p><p>>>> ^Z</p><p>[/CODE]</p><p>And now it works.</p><p></p><p>You can now use python manage.py runserver again.</p><p></p><p>The only problem that i'm facing right now is that I can't reach the page from outside my virtual machine (I've rented a virtual private server to make it available for friends) because the ports are not opened. Any idea on how I can do that?</p><p>I've already added rules to my iptables for the port 8000 but it doesn't seem to work. I know I don't need to install anything else since on <a href="http://127.0.0.1:8000" target="_blank">http://127.0.0.1:8000</a> I have the dndtools website working. (Thanks Lynx for being a command line browser...)</p><p></p><p>The followin part doesn't work for me :/</p><p>Edit : Nvm, it works. But I don't have any CSS...See screenshot below</p><p></p><p>Edit 2 I found why. It doesnt find the folder "static". But I don't know why :/</p><p>Edit 3 Ok, I put debug = True and it now detects the CSS. This is weird...</p><p>Edit 4 IT WORKS. <img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":)" title="Smile :)" data-smilie="1"data-shortname=":)" /><img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":)" title="Smile :)" data-smilie="1"data-shortname=":)" /><img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":)" title="Smile :)" data-smilie="1"data-shortname=":)" /><img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":)" title="Smile :)" data-smilie="1"data-shortname=":)" /> YEAH. It works with local.py edited with debug = true and manage.py runserver 0.0.0.0:80</p><p></p><p>That's so cool!</p></blockquote><p></p>
[QUOTE="Isiloki, post: 6450961, member: 6786372"] Happy to see you progressed! On my side, I've managed to get a full mirror of the website working. Can help you with the steps I did (the versions are really important, there are some breaking changes in the newer versions) Assuming you have python 2.6 installed [CODE] - wget [URL]https://bootstrap.pypa.io/ez_setup.py[/URL] -O - | python - easy_install pip - pip install Django==1.2.7 - easy_install South - easy_install django-pagination - easy_install django-debug-toolbar - apt-get install python-dev - pip install textile - easy_install recaptcha-client - apt-get install python-imaging - apt-get install git - apt-get install mysql-server mysql-client (avec mdp) - apt-get install python-mysqldb - git clone [URL]https://github.com/django-debug-toolbar/django-debug-toolbar.git[/URL] - cd django-debug-toolbar - git checkout tags/0.8.4 - python setup.py build / install - git clone [URL]https://github.com/etianen/django-reversion.git[/URL] - cd django-reversion - git checkout tags/release-1.3.3 - python setup.py build / install - cd .. - mysql -u root -p > create database dndtools; > exit; - wget bit.ly/XYFJdV - apt-get install p7zip - 7za e XYFJdV - mysql -u root -p -h localhost dndtools < dndtools_prod_backup_2013_03_02_clear_accounts_no_reversions.sql (or whatever you script SQL is) - git clone [URL]https://github.com/dndtools/dndtools.git[/URL] - cd dndtools/dndtools cp local.py.sample local.py - nano local.py (modify these 3 lines): > Name : dndtools > User : root > Password - python manage.py runserver (and use apt-get to install the missing component) once the server is running, stop it and do # python manage.py shell And that where you are missing the ultimate command line >>> [COLOR=#ff0000]from django.contrib.auth.models import User[/COLOR] >>> users = User.objects.all() >>> user = users[0] >>> user.set_password('dndtools') >>> user.save() >>> ^Z [/CODE] And now it works. You can now use python manage.py runserver again. The only problem that i'm facing right now is that I can't reach the page from outside my virtual machine (I've rented a virtual private server to make it available for friends) because the ports are not opened. Any idea on how I can do that? I've already added rules to my iptables for the port 8000 but it doesn't seem to work. I know I don't need to install anything else since on [URL]http://127.0.0.1:8000[/URL] I have the dndtools website working. (Thanks Lynx for being a command line browser...) The followin part doesn't work for me :/ Edit : Nvm, it works. But I don't have any CSS...See screenshot below Edit 2 I found why. It doesnt find the folder "static". But I don't know why :/ Edit 3 Ok, I put debug = True and it now detects the CSS. This is weird... Edit 4 IT WORKS. :):):):) YEAH. It works with local.py edited with debug = true and manage.py runserver 0.0.0.0:80 That's so cool! [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Geek Talk & Media
setting up a local dndtools mirror
Top