Comments (2)
Feedback from Jose C. Lacal:
Background:
- I'm following the instructions posted on
{http://eulfedora.readthedocs.org/en/0.20/tutorials/fedora.html} to
install EULfedora on an Ubuntu Server 12.10 AMD64.- You may want to add these items as they seem to be required
sudo apt-get install python-dev libxml2-dev libxslt1-dev- This installs the latest Django version:
sudo pip install Django==1.5- If using PostgreSQL, user will also need to do this:
sudo apt-get build-dep python-psycopg2
pip install psycopg2- The configuration line:
FEDORA_ROOT = 'https://localhost:8543/fedora/'Needs to be adjusted based on FedoraCommons' config. For example, if using included Tomcat:
FEDORA_ROOT = 'http://localhost:8080/fedora/'
- You may want to add
"cd to simplerepo directory"
before this command:
python manage.py startapp repo- If user gets this error in the command line, after:
save the object to Fedora
obj.save()
error: [Errno 111] Connection refused
This means the setting for FEDORA_ROOT is wrong.
http://eulfedora.readthedocs.org/en/0.19.3/tutorials/fedora.html
Letβs create a search template to display the search form and search results. Create repo/search.html in your templates directory and add this:
<h1>Search for objects</h1> <form method="post">{% csrf_token %} {{ form.as_p }} <input type="submit" value="Submit"/> </form> {% if objects %} <hr/> {% for obj in objects %} <p><a href="{% url display obj.pid %}">{{ obj.label }}</a></p> {% endfor %} {% endif %}
Error message:
NoReverseMatch at /search/
'url' requires a non-empty first argument. The syntax changed in Django
1.5, see the docs.
Request Method: POST
Request URL: http://54.235.157.196:8000/search/
Django Version: 1.5
Exception Type: NoReverseMatch
Exception Value:
'url' requires a non-empty first argument. The syntax changed in Django
1.5, see the docs.<a href="{% url display obj.pid %}">{{ obj.label }}</a>
Solution: for Django 1.5 it must be 'display'
<a href="{% url 'display' obj.pid %}">{{ obj.label }}</a>
from eulfedora.
See the pull request:#12
from eulfedora.
Related Issues (18)
- Retrieving previous versions of a datastream's content HOT 2
- Missing Content-Disposition in raw_datastream view HOT 5
- progressbar versions HOT 6
- syncutil - window size for reading datastream information can be too small HOT 3
- custom panel for django-debug-toolbar
- raw_datastream view documentation not included on readthedocs.org
- Documentation: clarify datastream.content usage for generic DatastreamObject vs FileDatastreamObject HOT 5
- fedora-checksums not repairing HOT 5
- eulfedora not compatible with requests 2.11.0 HOT 3
- Checksum Mismatch
- Eulfedora and Fedora 4.x
- Use pycryptodome instead of pycrypto
- Status of the project
- TypeError at /objects/simplerepo:1/ HOT 1
- syncrepo command not found HOT 4
- References to XMLDatastreamObjects being overwritten HOT 3
- add_relationship() does not recognize object PIDs when provided as unicode strings HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eulfedora.