
from django.conf.urls import patterns, url
from django.views.generic.base import TemplateView
import views

# exporting metadata search results
urlpatterns = patterns('',
    # export search results
    url(r'^submit-query/?$',
        'nhmmer.views.submit_job',
        name='nhmmer-submit-job'),

    # get nhmmer search job status
    url(r'^job-status/?$',
        'nhmmer.views.get_status',
        name='nhmmer-job-status'),

    # get nhmmer results
	url(r'^get-results/?$',
		views.ResultsView.as_view(),
		name='nhmmer-job-results'),

    # user interface
    url(r'^$', TemplateView.as_view(template_name='nhmmer/sequence-search.html'),
        name='nhmmer-sequence-search'),
)


from django.conf.urls import patterns, url
from django.views.generic.base import TemplateView
import views

# exporting metadata search results
urlpatterns = patterns('',
    # export search results
    url(r'^submit-query/?$',
        'nhmmer.views.submit_job',
        name='nhmmer-submit-job'),

    # get nhmmer search job status
    url(r'^job-status/?$',
        'nhmmer.views.get_status',
        name='nhmmer-job-status'),

    # get nhmmer results
    url(r'^get-results/?$',
        views.ResultsView.as_view(),
        name='nhmmer-job-results'),

    # user interface
    url(r'^$', TemplateView.as_view(template_name='nhmmer/sequence-search.html'),
        name='nhmmer-sequence-search'),
)

Use spaces instead of tabs
Use spaces instead of tabs

  
  from django.conf.urls import patterns, url
  from django.views.generic.base import TemplateView
  import views
  
  # exporting metadata search results
  urlpatterns = patterns('',
      # export search results
      url(r'^submit-query/?$',
          'nhmmer.views.submit_job',
          name='nhmmer-submit-job'),
  
      # get nhmmer search job status
      url(r'^job-status/?$',
          'nhmmer.views.get_status',
          name='nhmmer-job-status'),
  
      # get nhmmer results
- 	url(r'^get-results/?$',
+     url(r'^get-results/?$',
- 		views.ResultsView.as_view(),
+         views.ResultsView.as_view(),
- 		name='nhmmer-job-results'),
+         name='nhmmer-job-results'),
  
      # user interface
      url(r'^$', TemplateView.as_view(template_name='nhmmer/sequence-search.html'),
          name='nhmmer-sequence-search'),
  )
  
Use spaces instead of tabs
## Code Before:

from django.conf.urls import patterns, url
from django.views.generic.base import TemplateView
import views

# exporting metadata search results
urlpatterns = patterns('',
    # export search results
    url(r'^submit-query/?$',
        'nhmmer.views.submit_job',
        name='nhmmer-submit-job'),

    # get nhmmer search job status
    url(r'^job-status/?$',
        'nhmmer.views.get_status',
        name='nhmmer-job-status'),

    # get nhmmer results
	url(r'^get-results/?$',
		views.ResultsView.as_view(),
		name='nhmmer-job-results'),

    # user interface
    url(r'^$', TemplateView.as_view(template_name='nhmmer/sequence-search.html'),
        name='nhmmer-sequence-search'),
)

## Instruction:
Use spaces instead of tabs
## Code After:

from django.conf.urls import patterns, url
from django.views.generic.base import TemplateView
import views

# exporting metadata search results
urlpatterns = patterns('',
    # export search results
    url(r'^submit-query/?$',
        'nhmmer.views.submit_job',
        name='nhmmer-submit-job'),

    # get nhmmer search job status
    url(r'^job-status/?$',
        'nhmmer.views.get_status',
        name='nhmmer-job-status'),

    # get nhmmer results
    url(r'^get-results/?$',
        views.ResultsView.as_view(),
        name='nhmmer-job-results'),

    # user interface
    url(r'^$', TemplateView.as_view(template_name='nhmmer/sequence-search.html'),
        name='nhmmer-sequence-search'),
)
