It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a set of url patterns in django 1.4.1. I want to be able to raise 404 when the user tries a url[users do that] thats not in the list.
Not sure how to do it. May be I am not reading the docs right.
PS: i have set DEBUG to False in settings, and any try at invalid urls say "An error has occured at the server"
Thanks and regards
Prabhakar S
You need to write 404.html template, which django uses to show page not found error when you set DEBUG=False.
Similarly, you may want to write 500.html to handle any server errors.
More reference : Writing 404 view
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster#localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
if you are using WAMP , i think you have to open rewrite-module of apache.
try it , i think it will work.
same problem was with me.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
if sphinx does not require database then how to store string or text in index of sphinx ?
From Sphinx website:
Sphinx lets you either batch index and search data stored in an SQL
database, NoSQL storage, or just files quickly and easily — or index
and search data on the fly, working with Sphinx pretty much as with a
database server.
Non-SQL storage indexing. Data can also be streamed to batch indexer
in a simple XML format called XMLpipe, or inserted directly into an
incremental RT index.
So yes it works without database... How? You can probably read the doc... Did you search?
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I was wondering if you could help me - with PHP, I would like to have a system where after going through a like-gate, the customer uploads a file (I'm fine with doing this) and once they have done that the application will write a post on the users wall to tell them.
As a second stage to this, when in the admin tool for the app, the administrator puts a comment against the image that person has uploaded, we'd like the comment to go onto the customers wall - and this might be a week after.
Any help gratefully appreciated :)
You will want to use the Graph API http://developers.facebook.com/docs/reference/api/
You will need permissions from the user: http://developers.facebook.com/docs/reference/api/permissions/ Specifically publish_stream.
Posting to someone's wall is easy. From me/posts HTTP Post the correct parameters. See the post section of http://developers.facebook.com/docs/reference/api/user/
You can try it out here: http://developers.facebook.com/tools/explorer
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I just installed Railo 3 latest version on my Win7 PC. I've added a couple test variables using cfset and those output fine so i know Railo is running.
I added a simple cfdiv tag with no parameters set and when i run the page i get an error.
Then i tried another cfdiv setting each parameter that are marked as optional and i've gotten the error to disappear.
I have always used Adobe Coldfusion and I'm already starting to feel like the end result is going to be more predictable using Adobe Coldfusion. What do others think about some of the knock Coldfusion implementations like Railo and OpenBD?
CFDiv is an extension for the engine. So it is added as a CFC based custom tag. If there is anything wrong with it you could submit a patch for it since it is all written in CFML.
Although it is nice to have all tha AJAX tags I would always recommend using a javascript framework like JQuery or ExtJS.
Gert
Nothing wrong with any of them IMHO. Use whatever works best for you. =) That's the beauty of choice!
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I've built a simple NPAPI plugin, and registered it with Chrome. This all works; javascript in the browser is able to interact with plugin.
But i need to be able to call methods of my plugin from Chrome extensions.
Can it be done?
Yes, you can. Extensions are implemented in JS and HTML, so you can embed and call a plugin from an extension just as you would from a web page.