PDA

View Full Version : Using EQEmulator with Django for database editing


daspork
02-21-2010, 02:51 AM
To try and redeem myself from my most crummy first post I would like to contribute a small bit of work I did to setup my database to be edited with Django the python web framework. After trying to use some of the other tools that were available I decided to try a hand at pointing a Django app at the database just to see if it was as painless as it claimed. 20 Minutes later I was editing an item.

Linux is my only OS so any tools I use have to be appropriately platform independent. I use linux to play and develop.

I posted this "tutorial" on the wiki at the following address: http://www.eqemulator.net/wiki/wikka.php?wakka=EditingWithDjango

Please comment on it. I will be happy to answer questions, and would even be willing to post my code on an svn somewhere and keep it updated. I am using the latest PEQ svn so the code would probably be useful to those that don't want to build it custom for themselves.

Please comment on things that need to be fleshed out and parts where I just totally whizzed by something. I will be expanding on the topic in the future. With the DB setup being so easy there is so much that can be done with the Django views. Servers like The Hidden Forest that have an allah like site included could be made in minutes minus the css and prettying up.

I hope to contribute more soon, and thank everyone for all of their hard work. I am working hard on content for my server. I'm really trying to go outside the box and I'm glad that the project has matured to allow for that. I have been able to do 100% of the things I wanted so far. I must say the Task functionality blew me away. So much potential, and so easy to setup, I am surprised more servers I have played on do not take advantage of this. With the added perl interface you can really get deep with the Tasks. I am really impressed.

If you guys give a decent response I will take the time to maintain an editor with the current PEQ release. If that is the case the only setup involved would be a python interpreter as the built in web server is more than enough to use the admin interface. And more complex tasks can be designed in the views. With a little JS and CSS so much could be done.

Enjoy

Tabasco
05-19-2010, 02:06 PM
I got this working today and it's actually pretty nice. I had to do quite a bit more to set up Django than was listed in the wiki, but once I got it working it looks to be a nice editor.
I use the PEQ editor for some things and phpmyadmin for others, but it seems phpmyadmin chokes on tables with a lot of columns, like the items table.
I'd be interested in seeing more work on this.

daspork
07-15-2010, 09:27 AM
Hrmmm. As far as more work goes, I didn't really know where to go from there. I guess I could totally release a django app for it, but I kinda just did the wiki page to show what could be done. As far as "I had to do quite a bit more to set up Django than was listed in the wiki, but once I got it working it looks to be a nice editor." goes.... there is a link to the django tutorial that covers all of that. Rewriting what could be argued as some of the best documentation ever done isnt something I want to spend my time on.

If there is genuine interest in this I would be happy to continue on with the project. One of the most powerful parts of this approach is when you start using the data to build a website. I dare say it could give a server a really competitive edge with its web presence.

Tabasco
07-21-2010, 03:54 PM
The peqphpeditor has grown a lot since I posted this (and the phpmyadmin issue had to do with the suhosin patch, my bad), so I abandoned my own work with it pretty quickly.

Now that I'm more acquainted with the tools available and have spent some time building content, I think it's safe to say that my linux development environment is complete.

I don't want to discourage you from working on it though, choice is a good thing.