mirror of
				https://github.com/django/django.git
				synced 2025-11-04 05:35:37 +00:00 
			
		
		
		
	Added docs about urls.py and testing views for contrib apps
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		
							parent
							
								
									ddcf51a0ba
								
							
						
					
					
						commit
						5efb9652d7
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -758,7 +758,8 @@ in a ``tests.py`` file. (You can split the tests over multiple modules
 | 
				
			||||||
by using a ``tests`` folder in the normal Python way).
 | 
					by using a ``tests`` folder in the normal Python way).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
For the tests to be found, a ``models.py`` file must exist (it doesn't
 | 
					For the tests to be found, a ``models.py`` file must exist (it doesn't
 | 
				
			||||||
have to have anything in it).
 | 
					have to have anything in it).  If you have URLs that need to be
 | 
				
			||||||
 | 
					mapped, you must add them in ``tests/urls.py``.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
To run tests for just one contrib app (e.g. ``markup``), use the same
 | 
					To run tests for just one contrib app (e.g. ``markup``), use the same
 | 
				
			||||||
method as above::
 | 
					method as above::
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue