mrchoclate / uml-to-django Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/uml-to-django
Automatically exported from code.google.com/p/uml-to-django
hi,
I am quite new to django but I liked the idea of generating the model from the
UML and so I was looking forward to use this "uml-to-django", but I have failed
after few steps - please help me with it (as I am new I put quite exhaustive
description what I did):
What steps will reproduce the problem?
1. I have Python 2.7.1 & django & libxml2-python-2.7.7.win32-py2.7 and also
ArgoUML installed
2. I have a new django project called "mysite" (under .\mysite\) with an empty
application called APP (under .\mysite\APP\)... and I can successfully run both
'python manage.py syncdb' and 'python manage.py runserver' in that directory
(NOTE:I have closed server for next steps)
3. I have downloaded the uml-to-django.zip and unzipped it into .\mysite\uml2dj\
4. I have opened .\mysite\uml2dj\uml2dj.zargo in ArgoUML (draw 2 associated
classes inside MyApplication board) and saved it as APP.zargo (in the same
.\mysite\uml2dj\ folder)
5. I have exported in as .\mysite\APP.xmi
6... when I do the 'python uml2dj APP' I have following error in command line:
" .\mysite>python uml2dj APP
C:\Program Files\Python27\python.exe: can't find '__main__' module in 'uml2dj' "
=== Additional info ===
a) I have tried it with AlgoUML both turned on & off as well - same message
b) I have following files in my .\mysite\uml2dj\ folder (while running step.6):
a.txt
APP.zargo
APP.zargo~
uml2dj.zargo
uml2djlib.py
xmi2djadmin.xsl
xmi2djadmin_custom.xsl
xmi2djadmin_generic.xsl
xmi2djmodels.xsl
xmi2djmodels_generic.xsl
xmilib.xsl
__init__.py (which seems to be empty)
thanks a lot in advance,
Borys
Original issue reported on code.google.com by [email protected]
on 11 Apr 2011 at 3:47
What steps will reproduce the problem?
1. Create aggregation to object itself
What is the expected output? What do you see instead?
Error: One or more models did not validate:
toobackup.host: Reverse query name for field 'host' clashes with field
'Host.host'. Add a related_name argument to the definition for 'host'.
What version of the product are you using? On what operating system?
Django 1.1.1
Please provide any additional information below.
Into the file:
uml2dj/xmi2djmodels_generic.xsl
Change row 192 to:
<xsl:when test="$classid = $otherClassid">'self',
related_name='self_child'</xsl:when>
Original issue reported on code.google.com by [email protected]
on 9 Feb 2010 at 10:17
This is not really an issue. I didn't know how else to communicate with
you. But is there a Group associated with this project?
Thanks
Eric
Original issue reported on code.google.com by [email protected]
on 3 Oct 2009 at 11:45
Will there be operations (methods with body and args support) soon?
Btw, you have made good application. :)
Original issue reported on code.google.com by [email protected]
on 9 Feb 2010 at 11:32
I believe that the seventh step in the quick start up for uml2dj is not
consistent:
7 - In the PRJ/APP folder, rename admin_custom.py into admin_custom.py and
models.py into models.py. (you only need to do this once).
It should be
7 - In the PRJ/APP folder, rename _admin_custom.py into admin_custom.py and
_models.py into models.py. (you only need to do this once).
Furthermore, i have to rename the files whenever i generate the code, not only
once.
Original issue reported on code.google.com by [email protected]
on 25 Oct 2010 at 12:31
The provided instructions won't work when reverse-engineering the class model
from source files in argouml.
I had a class model built using visual paradigm. The XMI created by VP didn't
work with uml-to-django, so I generated java source code in VP, and reverse
engineered it in argouml. This kida worked, but exporting the resulting xmi
from argouml wasn't directly usable with uml-to-django.
Original issue reported on code.google.com by [email protected]
on 18 Mar 2011 at 6:23
UML-to-Django does not support class names:
- which are too long (this is due to limitation in the the size of the
columns in Django tables)
- which contains special characters such as . or / .
Original issue reported on code.google.com by [email protected]
on 16 Oct 2009 at 12:28
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.