My question is pretty much the same as this question, except that ALL relationships should be many-to-many.
I have the following classes in my models.py (somewhat simplified):
class Profile(models.Model):
# Extending the built in User model
user = models.ForeignKey(User, unique=True)
birthday = models.DateField()
class...
I'm working on branching my services of my MVC solution to a separate project, which includes a MembershipProvider wrapper. The problem is that when doing my unit testing, the provider information being used isn't coming from the MVC project's Web.Config file (e.g. the connection string), but some default settings. I have the feeling, th...
I'm currently writing a small application for use internally at my office.
I started out teaching myself some MVC (I've been a C# dev for 3 years).
One of the main requirements is editable grids - I quickly realised that silverlight (i have zero silverlight experience) could be a big help in this.
I've managed to create a proof of conce...
I am building UI for a large product catalog (millions of products).
I am using Sql Server, FreeText search and ASP.NET MVC.
Tables are normalized and indexed. Most queries take less then a second to return.
The issue is this. Let's say user does the search by keyword. On search results page I need to display/query for:
Displ...
Wondering the pros and cons for MVC architecture in terms of web application development? And What is the difference between MVC and 3-tire architecture?
...
Hi. I have a Category and Subcategory models in my project. I would like to have many sub-levels in a flexible way. I thought making a self referential "parent" foreign key but I'm not quite sure how to do it. Any ideas? Thanks!
Cat1
Sub1
SubSub1
SubSub2
Sub2
Cat2
Sub1
Cat3
Sub1
Sub2
SubSub1
...
Senario:
I'm running IIS7 on Win Server 2008 Web Edition
I have a MVC application at the route of the website (main app)
The website HOST is domain.com
I've created a virtual application /testapp with has an ASP.Net application (sub app)
Problem:
when I navigate to http://domain.com the main app works as expected but when I navigat...
Hi, I am trying to follow good practices as much as possible while I'm learning using OOP in an MVC structure, so i'm turning to you guys for a bit of advice on something which is bothering me a little here.
I am writing a site where I will have a number of different forms for members to fill in (mainly data about themselves), so i've ...
I want to do something, like edit my email address in a profile page, then return to the homepage saying it was successful - just like stackoverflow does when you receive answers or earn a new badge.
...
Hello, I have a few widgets I need to show on a site - they are all relating to different types of data (e.g user, house). Each type of data and its relations is represented in specific models, but as far as a controller or helper is concerned, is it an ok plan to have a generic Widget controller/helper which generates the necessary widg...
I've got a problem with the formatting of inline code blocks within the VS2010 text editor and wonder if anyone else has had similar problems and found the 'magic' setting I'm looking for.
I'm working my way through tutorials in an MVC book. Whenever I add some inline code blocks to a view I want them formatted like so:
<% foreach (va...
When will ASP.NET MVC 3 be released?
...
I converted my website from asp.net mvc 1.0 to 2.0. After converting that i am getting the following error in actionlink
Method not found: 'System.String System.Web.Mvc.Html.LinkExtensions.RouteLink(System.Web.Mvc.HtmlHelper, System.String, System.Web.Routing.RouteValueDictionary, System.Collections.Generic.IDictionary`2<System.String,S...
How can MVC website benefit from the new parallelism features in .net 4? don't websites support parallelism by default since multiple users access them at the same time? Can someone clarify this?
...
I have a GWT app that when launched it takes you to a page with just a menu. So as a shortcut type thing I would like the users to be able to go straight to the page they want. So if the default start page is x, the should be able to say x/add and it will take them to the add page. How would I get that in gwt? Do I need a bunch of di...
I'm trying to secure my entire MVC site, so before the Home controller, I added an [Authorize] attribute.
Now if you run it from Visual Studio or navigate using the root URL (e.g. http://localhost:2897) it does redirect to the login page, as expected. However the URL in the address bar after redirection looks like this: http://localhos...
I'm using the zend modular director structure, i.e.
application
modules
users
controllers
.
.
lessons
reports
blog
I have a unit test for a controller in 'blog' that goes something like the below section of code:
I'm definitely doing somet...
I'm trying to create a UrlMapping to map some static URL to a controller action, but I can't seem to set params.id. I'm working through Grails in Action, so I'm not sure what's wrong here.
Code:
class UrlMappings
...
static mappings={
"/timeline/chuck_norris"(controller:'post',action:'timeline',id:'chuck_norris')
...
}
In PostCon...
Ok, so i'm new to asp.net mvc and i'm trying to make a web application photo gallery. I've posted once on here about this issue i am having of trying to generate thumbnails on-the-fly on the page instead of the actual full-size images. Basically, the functionality i am looking for is to be able to have thumbnails on the page and then b...
The idea of MVC itself seems clear to me but I have trouble understanding how the concept 'scales up' to multiple views and controllers.
It appears that Cocoa takes the approach of the controller being the 'switchboard' between the model and the view. How would the application be organized and function in case of multiple views? If ther...